From b0461b55c0a2b016f8eab1c7ec9dd0e7e15f96f2 Mon Sep 17 00:00:00 2001 From: artmakh Date: Tue, 12 Dec 2023 20:59:14 +0700 Subject: [PATCH] chore(ci): Update version, fix github outputs --- .github/workflows/build_and_publish.yaml | 12 +++++++----- .github/workflows/build_and_publish_tee.yaml | 2 +- .github/workflows/ci.yaml | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_and_publish.yaml b/.github/workflows/build_and_publish.yaml index 6a3ac04..6d47980 100644 --- a/.github/workflows/build_and_publish.yaml +++ b/.github/workflows/build_and_publish.yaml @@ -15,8 +15,10 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Log in to Docker Hub uses: docker/login-action@v2 @@ -28,7 +30,7 @@ jobs: id: tag if: ${{ startsWith(github.ref, 'refs/tags') }} run: | - echo "name=BUILD_ID::${GITHUB_REF#refs/*/}" >> "$GITHUB_OUTPUT" + echo "BUILD_ID=${GITHUB_REF#refs/*/}" >> "$GITHUB_OUTPUT" - name: Generate build ID for Flux Image Automation id: build @@ -36,14 +38,14 @@ jobs: run: | sha=$(git rev-parse --short HEAD) ts=$(date +%s%N | cut -b1-13) - echo "name=BUILD_ID::${sha}-${ts}" >> "$GITHUB_OUTPUT" + echo "BUILD_ID=${sha}-${ts}" >> "$GITHUB_OUTPUT" - name: Auth to google artifact registry run: | gcloud auth configure-docker us-docker.pkg.dev -q - name: Build and push Docker image - uses: docker/build-push-action@v2.7.0 + uses: docker/build-push-action@v5 if: ${{ startsWith(github.ref, 'refs/tags') }} with: push: true @@ -56,7 +58,7 @@ jobs: no-cache: true - name: Build and push Docker image - uses: docker/build-push-action@v2.7.0 + uses: docker/build-push-action@v5 if: ${{ !startsWith(github.ref, 'refs/tags') }} with: push: true diff --git a/.github/workflows/build_and_publish_tee.yaml b/.github/workflows/build_and_publish_tee.yaml index b2232ce..42ca82a 100644 --- a/.github/workflows/build_and_publish_tee.yaml +++ b/.github/workflows/build_and_publish_tee.yaml @@ -41,7 +41,7 @@ jobs: run: | sha=$(git rev-parse --short HEAD) ts=$(date +%s%N | cut -b1-13) - echo "name=BUILD_ID::${sha}-${ts}" >> "$GITHUB_OUTPUT" + echo "BUILD_ID=${sha}-${ts}" >> "$GITHUB_OUTPUT" - name: Auth to google artifact registry run: | diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a67e20e..127e1d2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,7 +28,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: test Docker image build - uses: docker/build-push-action@v2.7.0 + uses: docker/build-push-action@v5 with: push: false file: Dockerfile