diff options
author | 2023-09-26 17:40:17 -0700 | |
---|---|---|
committer | 2023-09-26 17:40:17 -0700 | |
commit | 9e26485b04ca1356a9e28d9cb30fc2b3943fde18 (patch) | |
tree | 8ce74bbb9ea133cf05335645376b5cde4d827ad8 | |
parent | 5cf29df066444571b5f23d9b4834df42e9765a1e (diff) | |
download | bun-9e26485b04ca1356a9e28d9cb30fc2b3943fde18.tar.gz bun-9e26485b04ca1356a9e28d9cb30fc2b3943fde18.tar.zst bun-9e26485b04ca1356a9e28d9cb30fc2b3943fde18.zip |
Fix docker release tag
-rw-r--r-- | .github/workflows/bun-release-canary.yml | 23 | ||||
-rw-r--r-- | .github/workflows/bun-release.yml | 2 |
2 files changed, 19 insertions, 6 deletions
diff --git a/.github/workflows/bun-release-canary.yml b/.github/workflows/bun-release-canary.yml index b37aa3067..854421337 100644 --- a/.github/workflows/bun-release-canary.yml +++ b/.github/workflows/bun-release-canary.yml @@ -4,11 +4,24 @@ on: schedule: - cron: "0 14 * * *" # every day at 6am PST workflow_dispatch: + inputs: + use-docker: + description: Should Docker images be released? + type: boolean + default: false + use-npm: + description: Should npm packages be published? + type: boolean + default: false + use-s3: + description: Should binaries be uploaded to S3? + type: boolean + default: false jobs: sign: name: Sign Release runs-on: ubuntu-latest - if: github.repository_owner == 'oven-sh' + if: ${{ github.repository_owner == 'oven-sh' }} permissions: contents: write defaults: @@ -43,7 +56,7 @@ jobs: name: Release to NPM runs-on: ubuntu-latest needs: sign - if: github.repository_owner == 'oven-sh' + if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.use-npm }} permissions: contents: read defaults: @@ -71,7 +84,7 @@ jobs: name: Release to Dockerhub (${{ matrix.variant }}) runs-on: ubuntu-latest needs: sign - if: github.repository_owner == 'oven-sh' + if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.use-docker }} permissions: contents: read strategy: @@ -100,7 +113,7 @@ jobs: with: images: oven/bun flavor: | - suffix=${{ matrix.variant }} + suffix=-${{ matrix.variant }} tags: canary - id: login name: Login to Docker @@ -124,7 +137,7 @@ jobs: name: Upload to S3 runs-on: ubuntu-latest needs: sign - if: github.repository_owner == 'oven-sh' + if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.use-s3 }} permissions: contents: read defaults: diff --git a/.github/workflows/bun-release.yml b/.github/workflows/bun-release.yml index cd52fdd2a..bf89ea243 100644 --- a/.github/workflows/bun-release.yml +++ b/.github/workflows/bun-release.yml @@ -173,7 +173,7 @@ jobs: images: oven/bun flavor: | latest=${{ matrix.variant == 'debian' }} - suffix=${{ matrix.variant }} + suffix=-${{ matrix.variant }} tags: | type=match,pattern=(bun-v)?(\d+.\d+.\d+),group=2,value=${{ env.TAG }} type=match,pattern=(bun-v)?(\d+.\d+),group=2,value=${{ env.TAG }} |