Skip to content

Commit

Permalink
add latest flag when triggering workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed Nov 18, 2023
1 parent f7b665c commit aa3a011
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
description: 'Presto version to build'
required: true
type: string
latest:
description: 'Whether to tag the version as latest'
default: false
required: false
type: boolean

permissions:
contents: read
Expand All @@ -26,6 +31,7 @@ jobs:
images: ghcr.io/popsql/prestodb-sandbox
tags: |
type=raw,value=${{ inputs.version }}
type=raw,value=latest,enable=${{ inputs.latest == 'true' }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand Down
1 change: 1 addition & 0 deletions scripts/trigger_workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const imageExists = async (version) => {
body: JSON.stringify({
ref: 'main',
inputs: {
latest: true,
version,
},
}),
Expand Down

0 comments on commit aa3a011

Please sign in to comment.