-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (53 loc) · 1.68 KB
/
release_builder.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
on:
push:
tags:
- 'v*'
name: dockerhub builder release
permissions:
contents: read
jobs:
build:
name: kickable - dockerhub builder release
runs-on: ubuntu-latest
env:
FORCE_COLOR: 1
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
steps:
- name: harden runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: update git branch
run: |
branch=""
if [ -n "$GITHUB_HEAD_REF" ]; then
branch="$GITHUB_HEAD_REF"
else
branch="${GITHUB_REF##*/}"
fi
git checkout -b "$branch" || true
- name: setup qemu
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
with:
image: tonistiigi/binfmt:latest
platforms: all
- name: docker login
run: docker login --username kickable --password "${{ secrets.DOCKER_HUB }}"
- name: set version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo "VERSION=$VERSION" >> $GITHUB_ENV
- uses: depot/setup-action@eb2efd6287c794d456be5e1a7963fa8772c39ce5 # v1.5.0
with:
version: 2.7.6
- uses: depot/build-push-action@43196ed9248457b5b0c066ed064095f5427a116b # v1.12.0
with:
project: mA50ur1KuM
context: .
file: ./docker/Dockerfile.builder
platforms: linux/arm64,linux/amd64
push: true
token: ${{ secrets.DEPOT_TOKEN }}
tags: kickable/builder:latest