From f39deeeb57b89ca277e261362328a923925774b6 Mon Sep 17 00:00:00 2001 From: Nicko Guyer Date: Tue, 26 Mar 2024 09:56:56 -0400 Subject: [PATCH] Update GitHub Actions Signed-off-by: Nicko Guyer --- .github/workflows/docker_main.yml | 10 +++++----- .github/workflows/docker_release.yml | 10 +++++----- .github/workflows/test.yml | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docker_main.yml b/.github/workflows/docker_main.yml index 0a960e7..f86ba05 100644 --- a/.github/workflows/docker_main.yml +++ b/.github/workflows/docker_main.yml @@ -9,7 +9,7 @@ jobs: docker: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set build tag id: build_tag_generator @@ -25,16 +25,16 @@ jobs: --label build_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \ --label tag=${{ steps.build_tag_generator.outputs.BUILD_TAG }} \ --tag ghcr.io/hyperledger/firefly-sandbox:${{ steps.build_tag_generator.outputs.BUILD_TAG }} . - + - name: Tag release run: docker tag ghcr.io/hyperledger/firefly-sandbox:${{ steps.build_tag_generator.outputs.BUILD_TAG }} ghcr.io/hyperledger/firefly-sandbox:head - + - name: Push docker image run: | echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin docker push ghcr.io/hyperledger/firefly-sandbox:${{ steps.build_tag_generator.outputs.BUILD_TAG }} - + - name: Push head tag run: | echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin - docker push ghcr.io/hyperledger/firefly-sandbox:head \ No newline at end of file + docker push ghcr.io/hyperledger/firefly-sandbox:head diff --git a/.github/workflows/docker_release.yml b/.github/workflows/docker_release.yml index cdfac7b..4cce036 100644 --- a/.github/workflows/docker_release.yml +++ b/.github/workflows/docker_release.yml @@ -8,22 +8,22 @@ jobs: docker: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build run: docker build -t ghcr.io/hyperledger/firefly-sandbox:${GITHUB_REF##*/} . - + - name: Tag release if: github.event.action == 'released' run: docker tag ghcr.io/hyperledger/firefly-sandbox:${GITHUB_REF##*/} ghcr.io/hyperledger/firefly-sandbox:latest - + - name: Push docker image run: | echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin docker push ghcr.io/hyperledger/firefly-sandbox:${GITHUB_REF##*/} - + - name: Push latest tag if: github.event.action == 'released' run: | echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin - docker push ghcr.io/hyperledger/firefly-sandbox:latest \ No newline at end of file + docker push ghcr.io/hyperledger/firefly-sandbox:latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 85242ad..a85fab8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,12 +10,12 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: "16.x" + node-version: "v20.11.1" - run: npm ci working-directory: ./server - run: npm run test