From a5a34bf39e91cada18b8d19e3f63009174a3fac3 Mon Sep 17 00:00:00 2001 From: cortadocodes Date: Tue, 27 Aug 2024 16:19:13 +0100 Subject: [PATCH] OPS: Update docker build in workflows --- .github/workflows/build-docker-image.yml | 2 ++ .github/workflows/release.yml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index d4fcdf9..eee52ab 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -31,5 +31,7 @@ jobs: uses: docker/build-push-action@v3.1.1 with: context: . + build-args: VERSION=${{ github.event.inputs.ref }} + platforms: linux/amd64 push: true tags: octue/check-semantic-version:${{ github.event.inputs.tag }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6192b85..205fa29 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,10 +36,11 @@ jobs: run: tox - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: files: coverage.xml fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} outputs: package_version: ${{ steps.get-package-version.outputs.PACKAGE_VERSION }} @@ -78,5 +79,7 @@ jobs: uses: docker/build-push-action@v3.1.1 with: context: . + build-args: VERSION=${{ needs.tests.outputs.package_version }} + platforms: linux/amd64 push: true tags: octue/check-semantic-version:${{ needs.tests.outputs.package_version }},octue/check-semantic-version:latest