-
Notifications
You must be signed in to change notification settings - Fork 16
61 lines (50 loc) · 1.63 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Release pass-docker
on:
workflow_dispatch:
inputs:
releaseversion:
required: true
description: Version to release (e.g. 0.4.0)
nextversion:
required: true
description: Next development version (e.g. 0.5.0-SNAPSHOT)
runtests:
description: 'Run acceptance tests against release version?'
type: boolean
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
RELEASE: ${{ inputs.releaseversion }}
NEXT: ${{ inputs.nextversion }}
steps:
- uses: actions/checkout@v3
- name: Config git user
run: |
git config user.name ${{ github.actor }}
git config user.email "${{ github.actor}}@users.noreply.github.com"
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Update tags to release version
uses: ./.github/actions/update-pass-version
with:
version: $RELEASE
- name: Acceptance tests
if: ${{ inputs.runtests }}
uses: ./.github/actions/acceptance-test
with:
pullimages: 'missing'
- name: Bump image versions to next development version
uses: ./.github/actions/update-pass-version
with:
version: $NEXT
- name: Push git commits to GitHub
if: github.ref_type == 'branch' && github.ref_protected == false
run: git push origin ${{ github.ref_name }}
- name: Push release tag to GitHub
run: git push origin $RELEASE