-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (30 loc) · 1003 Bytes
/
release.yaml
File metadata and controls
37 lines (30 loc) · 1003 Bytes
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
name: "Release"
on:
release:
types: [published]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.26.2"
- name: Set tag in environment
run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV # extracts the tag name from refs/tags/v1.2.3
- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: "Build image"
run: make docker-buildx-build TAG=$RELEASE_VERSION
- name: "Docker login to Quay.io"
env:
DOCKER_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.QUAY_USERNAME }}
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD quay.io
- name: "Push image"
run: make docker-buildx-push TAG=$RELEASE_VERSION