Skip to content

Commit

Permalink
Configure Github Actions to tag builds with the tag located in the .env
Browse files Browse the repository at this point in the history
file
  • Loading branch information
mcduffie committed Feb 14, 2024
1 parent 33b2ebd commit 01100ff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
- 'unity_datascience/**'
- '.github/workflows/**'
- '.env'
build:

runs-on: ubuntu-latest
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 01100ff

Please sign in to comment.