This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 201
46 lines (44 loc) · 1.92 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
name: Release
on:
release:
types: [released]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
- name: Setup Go 1.16
uses: actions/setup-go@v2
with:
go-version: '1.16'
- name: Cache Maven Repository
uses: actions/cache@v1
with:
path: ~/.m2
key: release-${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: release-${{ runner.os }}-m2
- name: Perform release
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
QUAYIO_USER: ${{ secrets.QUAYIO_USER }}
QUAYIO_PASSWORD: ${{ secrets.QUAYIO_PASSWORD }}
SYNDESISCI_TOKEN: ${{ secrets.SYNDESISCI_TOKEN }}
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_KEY: ${{ secrets.GPG_KEY }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: |
git config --global user.email [email protected]
git config --global user.name 'Syndesis CI'
git config --global 'http.https://github.com/.extraheader' "Authorization: basic $(echo -n x-access-token:${SYNDESISCI_TOKEN}|base64 --wrap=0)"
gpg --batch --import <(echo "${GPG_KEY}")
export GPG_TTY=$(tty)
tools/bin/syndesis release --settings .mvn/settings.release.xml --release-version ${{ github.event.release.tag_name }} --git-remote origin --docker-user "${DOCKER_USER}" --docker-password "${DOCKER_PASSWORD}" --github-user syndesisci --github-token "${SYNDESISCI_TOKEN}" --quayio-user "${QUAYIO_USER}" --quayio-password "${QUAYIO_PASSWORD}" --gpg-keyname "${GPG_KEYNAME}" --gpg-passphrase "${GPG_PASSPHRASE}"