Skip to content

Commit

Permalink
Build using 'latest' tag instead
Browse files Browse the repository at this point in the history
  • Loading branch information
fivegrant committed Dec 4, 2023
1 parent babbeca commit 3b96292
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,31 @@ on:
tags: ['*']

jobs:
generate-tag:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.set-tag.outputs.tag }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
# generate-tag:
# runs-on: ubuntu-latest
# outputs:
# tag: ${{ steps.set-tag.outputs.tag }}
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3

- name: Read tag from project
id: set-tag
run: |
TAG=$(awk -F '\"' '/^version = /{print $2}' Project.toml)
echo "tag=$TAG" >> $GITHUB_OUTPUT
# - name: Read tag from project
# id: set-tag
# run: |
# TAG=$(awk -F '\"' '/^version = /{print $2}' Project.toml)
# echo "tag=$TAG" >> $GITHUB_OUTPUT

# Build and Publish all targets associated with specified group
bake:
needs:
- generate-tag
# needs:
# - generate-tag
uses: darpa-askem/.github/.github/workflows/bake-publish.yml@main
with:
file: 'docker/docker-bake.hcl'
group: 'prod'
registry: 'ghcr.io'
organization: ${{ github.repository_owner }}
tag: ${{ needs.generate-tag.outputs.tag }}
# tag: ${{ needs.generate-tag.outputs.tag }}
secrets:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3b96292

Please sign in to comment.