Skip to content

Commit f214381

Browse files
authored
Trigger release on release event
previously triggered upon workflow_dispatch
1 parent 9671a73 commit f214381

File tree

1 file changed

+8
-47
lines changed

1 file changed

+8
-47
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,13 @@
11
name: release
22

33
on:
4-
workflow_dispatch:
5-
inputs:
6-
tag:
7-
description: 'Tag to be released'
8-
required: true
9-
prerelease:
10-
description: "Is the release a GA?"
11-
required: false
12-
default: false
13-
type: boolean
14-
15-
jobs:
164
release:
17-
runs-on: ubuntu-latest
18-
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v2
21-
22-
- name: Set up QEMU
23-
uses: docker/setup-qemu-action@v1
24-
25-
- name: Set up Docker Buildk
26-
uses: docker/setup-buildx-action@v1
5+
types: [published]
276

28-
- name: Login to ghcr
29-
uses: docker/login-action@v1
30-
with:
31-
registry: ghcr.io
32-
username: ${{ github.actor }}
33-
password: ${{ secrets.GITHUB_TOKEN }}
34-
35-
- name: Build and push
36-
uses: docker/build-push-action@v2
37-
with:
38-
context: .
39-
file: ./Dockerfile
40-
push: true
41-
tags: |
42-
ghcr.io/scality/artifacts:${{ inputs.tag }}
43-
44-
- name: Create Release
45-
uses: softprops/action-gh-release@v1
46-
env:
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
with:
49-
name: Release ${{ github.event.inputs.tag }}
50-
tag_name: ${{ github.event.inputs.tag }}
51-
generate_release_notes: true
52-
target_commitish: ${{ github.sha }}
7+
jobs:
8+
docker:
9+
uses: scality/workflows/.github/workflows/docker-build.yaml@v1
10+
with:
11+
name: artifacts
12+
namespace: scality
13+
tag: ${{ github.ref_name }}

0 commit comments

Comments
 (0)