-
Notifications
You must be signed in to change notification settings - Fork 153
90 lines (73 loc) · 2.04 KB
/
tag-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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
name: tag release
# yamllint disable-line rule:truthy
on:
push:
branches:
- "release"
jobs:
build:
name: build.${{ matrix.heroku }}-${{ matrix.buildx }}
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
buildx:
- "false"
heroku:
- 22
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: 1.17.8
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- name: set up qemu
uses: docker/setup-qemu-action@v3
- name: set up docker buildx
uses: docker/setup-buildx-action@v3
- uses: actions/setup-python@v5
with:
python-version: "3.7.x"
- name: install requirements
run: make deps fpm package_cloud
- name: build
run: |
make build build/docker/${{ matrix.heroku }} BUILDX=false STACK_VERSION=${{ matrix.heroku }}
- name: upload packages
uses: actions/upload-artifact@v3
with:
name: build-${{ matrix.heroku }}-${{ matrix.buildx }}
path: build
tag-release:
name: tag-release
needs: build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- name: download packages
uses: actions/download-artifact@v3
with:
name: build-22-false
path: build
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: release
run: |
export CI_BRANCH=${GITHUB_REF#refs/heads/}
export PACKAGECLOUD_REPOSITORY=dokku/dokku
make release release-packagecloud
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}