Skip to content

Commit b039649

Browse files
committed
test GHA
1 parent fc3b99f commit b039649

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/release.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Release Internal Images
2+
on:
3+
push:
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]-test'
6+
env:
7+
GO_VERSION: "1.21"
8+
9+
jobs:
10+
release-cli:
11+
name: "Release CLI"
12+
env:
13+
GOPRIVATE: github.com/signadot/libconnect
14+
GH_ACCESS_TOKEN: ${{ secrets.SIGNADOT_GHA_GOBUILD_PAT }}
15+
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
# Use a depth of 0 to fetch full history. This is the only way to fetch
21+
# tags, needed to choose a version number to embed.
22+
fetch-depth: 0
23+
24+
- name: Set up Go
25+
uses: actions/setup-go@v4
26+
with:
27+
go-version: ${{ env.GO_VERSION }}
28+
29+
- name: Prepare for GOPRIVATE
30+
run: |
31+
git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/
32+
33+
- name: Docker Login
34+
uses: docker/login-action@v3.0.0
35+
with:
36+
username: ${{ secrets.DOCKERHUB_USER }}
37+
password: ${{ secrets.DOCKERHUB_TOKEN }}
38+
39+
# https://github.com/docker/setup-qemu-action
40+
- name: Set up QEMU
41+
uses: docker/setup-qemu-action@v3
42+
43+
# https://github.com/docker/setup-buildx-action
44+
- name: Set up Docker Buildx
45+
id: buildx
46+
uses: docker/setup-buildx-action@v3
47+
48+
# run goreleaser
49+
- name: Run GoReleaser
50+
uses: goreleaser/goreleaser-action@v5
51+
with:
52+
version: latest
53+
args: release --snapshot --clean
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
57+
58+

0 commit comments

Comments
 (0)