-
Notifications
You must be signed in to change notification settings - Fork 125
51 lines (40 loc) · 1.18 KB
/
release.yaml
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
name: release docker image
on:
push:
tags:
- v*
jobs:
release-docker-image:
name: Release Docker Image
strategy:
fail-fast: false
matrix:
go-version: [1.17.x]
runs-on: ubuntu-18.04
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.go-version}}
- name: Checkout Code Base
uses: actions/checkout@v3
with:
fetch-depth: 64
- name: Set ENV
run: |
echo "RELEASE_TAG=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Login Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Build And Push Docker Image
run: |
docker buildx build --push --platform linux/amd64,linux/arm64 --tag bitleak/lmstfy:$RELEASE_TAG --tag bitleak/lmstfy:latest .