From 01100ffe425370918276331193dfa67779a5c106 Mon Sep 17 00:00:00 2001 From: James McDuffie Date: Wed, 14 Feb 2024 11:36:19 -0800 Subject: [PATCH] Configure Github Actions to tag builds with the tag located in the .env file --- .github/workflows/docker-publish.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index f733dc9..1e9531a 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -43,7 +43,6 @@ jobs: - 'unity_datascience/**' - '.github/workflows/**' - '.env' - build: runs-on: ubuntu-latest @@ -64,6 +63,11 @@ jobs: stack: ${{ fromJSON(needs.changes.outputs.stacks) }} steps: + + - name: DotEnv file + id: dotenv + uses: ./.github/actions/dotenv-action + - name: Checkout repository uses: actions/checkout@v4 with: @@ -108,7 +112,9 @@ jobs: with: context: ${{ matrix.stack }} push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} + tags: + - ${{ steps.meta.outputs.tags }} + - ${{ steps.dotenv.outputs.docker_tag }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max