From fa3f87898c6098fe0b89bf557202301bcfca5668 Mon Sep 17 00:00:00 2001 From: Han Date: Tue, 11 Jun 2024 18:30:08 +0100 Subject: [PATCH] Update github actions to use new syntax --- .github/workflows/outpost-api-image.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/outpost-api-image.yml b/.github/workflows/outpost-api-image.yml index c71c2f2..1021a75 100644 --- a/.github/workflows/outpost-api-image.yml +++ b/.github/workflows/outpost-api-image.yml @@ -28,18 +28,20 @@ jobs: run: | BRANCH_NAME=${GITHUB_REF#refs/heads/} if [[ "$BRANCH_NAME" == "develop" ]]; then - echo "::set-output name=tag::development" + echo "tag=development" >> $GITHUB_ENV elif [[ "$BRANCH_NAME" == "staging" ]]; then - echo "::set-output name=tag::staging" + echo "tag=staging" >> $GITHUB_ENV elif [[ "$BRANCH_NAME" == "production" ]]; then - echo "::set-output name=tag::latest" + echo "tag=latest" >> $GITHUB_ENV + else + echo "tag=default" >> $GITHUB_ENV fi - name: Build and push outpost api docker image uses: docker/build-push-action@v5 with: context: . - tags: ghcr.io/wearefuturegov/outpost-api-service:${{ steps.vars.outputs.tag }} + tags: ghcr.io/wearefuturegov/outpost-api-service:${{ env.tag }} file: Dockerfile.production platforms: ${{ matrix.platforms }} push: true