diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff7eff5..b5928f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 diff --git a/scripts/trigger_workflow.js b/scripts/trigger_workflow.js index b90611e..ce32075 100644 --- a/scripts/trigger_workflow.js +++ b/scripts/trigger_workflow.js @@ -67,6 +67,7 @@ const imageExists = async (version) => { body: JSON.stringify({ ref: 'main', inputs: { + latest: true, version, }, }),