-
Notifications
You must be signed in to change notification settings - Fork 34
49 lines (40 loc) · 1.16 KB
/
docker.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
name: Rebuild docker image
on:
schedule:
- cron: '32 6 * * 0'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Checkout latest tag
run: |
export LATEST_TAG=`git describe --tags --abbrev=0`
git checkout $LATEST_TAG
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ~1.23
check-latest: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Install eget
run: go install github.com/zyedidia/eget@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean --config .goreleaser-docker-only.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}