Skip to content

Commit

Permalink
On schedule or dispatch, build from last release
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehinds committed Jan 19, 2024
1 parent 69d4c68 commit 50ce0c9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-publish-image.yml
Expand Up @@ -16,8 +16,19 @@ jobs:
id-token: write

steps:

- name: Get latest release tag
if: github.event_name != 'release'
id: get-latest-tag
run: |
TAG=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .tag_name)
echo "Latest tag is $TAG"
echo "RELEASE_TAG=$TAG" >> $GITHUB_ENV
- name: Check out the repo
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'release' && github.ref || env.RELEASE_TAG }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit 50ce0c9

Please sign in to comment.