From f214381fc775c9019821a151af2a2495844da307 Mon Sep 17 00:00:00 2001 From: Thomas Carmet <8408330+tcarmet@users.noreply.github.com> Date: Thu, 1 Feb 2024 14:18:44 -0800 Subject: [PATCH] Trigger release on release event previously triggered upon workflow_dispatch --- .github/workflows/release.yml | 55 +++++------------------------------ 1 file changed, 8 insertions(+), 47 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0234dd0..7858687 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,52 +1,13 @@ name: release on: - workflow_dispatch: - inputs: - tag: - description: 'Tag to be released' - required: true - prerelease: - description: "Is the release a GA?" - required: false - default: false - type: boolean - -jobs: release: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildk - uses: docker/setup-buildx-action@v1 + types: [published] - - name: Login to ghcr - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v2 - with: - context: . - file: ./Dockerfile - push: true - tags: | - ghcr.io/scality/artifacts:${{ inputs.tag }} - - - name: Create Release - uses: softprops/action-gh-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - name: Release ${{ github.event.inputs.tag }} - tag_name: ${{ github.event.inputs.tag }} - generate_release_notes: true - target_commitish: ${{ github.sha }} +jobs: + docker: + uses: scality/workflows/.github/workflows/docker-build.yaml@v1 + with: + name: artifacts + namespace: scality + tag: ${{ github.ref_name }}