-
Notifications
You must be signed in to change notification settings - Fork 179
58 lines (58 loc) · 1.84 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
name: release
on:
push:
branches-ignore: ["*"]
tags: ["*"]
workflow_dispatch:
jobs:
release:
if: github.repository == 'convox/rack'
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: golang-1.18
uses: actions/setup-go@v3
with:
go-version: '1.18.10'
- name: go path
run: |
mkdir -p ${HOME}/go
echo "GOPATH=${HOME}/go" >> $GITHUB_ENV
- name: version
run: echo "VERSION=$(echo ${{ github.ref }} | awk -F/ '{print $3}')" >> $GITHUB_ENV
- name: changelog
id: changelog
run: |
changelog=$(git log --pretty="* %s" ...$(git describe --abbrev=0 HEAD~))
echo ${changelog}
changelog="${changelog//'%'/'%25'}"
changelog="${changelog//$'\n'/'%0A'}"
changelog="${changelog//$'\r'/'%0D'}"
echo "::set-output name=text::${changelog}"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: login
run: docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD}"
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: secrets
run: ci/secrets.sh
env:
SECRETS: ${{ toJson(secrets) }}
- name: release
run: make release-all
- name: create relase version
run: go run cmd/release/main.go create "${VERSION}"
- name: notify slack
run: TYPE=release ci/slack.sh
- name: circleci trigger for e2e tests
id: convox
uses: CircleCI-Public/[email protected]
env:
CCI_TOKEN: ${{ secrets.CCI_TOKEN }}