Skip to content

Commit 382b2e3

Browse files
committed
bump go & auto-release from CI
1 parent a1613a0 commit 382b2e3

File tree

3 files changed

+67
-4
lines changed

3 files changed

+67
-4
lines changed

.github/workflows/ci.yml renamed to .github/workflows/always.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: ci
1+
name: always
22
on: [push]
33
jobs:
44
build:
55
name: Build
66
runs-on: ubuntu-latest
77
steps:
88

9-
- name: Set up Go 1.18
9+
- name: Set up Go
1010
uses: actions/setup-go@v1
1111
with:
12-
go-version: 1.18
12+
go-version: 1.19.1
1313
id: go
1414

1515
- name: Check out code into the Go module directory

.github/workflows/deploy.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jobs:
1414
with:
1515
submodules: true
1616

17+
- name: Set up Go
18+
uses: actions/setup-go@v1
19+
with:
20+
go-version: 1.19.1
21+
id: go
22+
1723
- name: Set env
1824
run: echo "GIT_TAG=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
1925

@@ -29,11 +35,29 @@ jobs:
2935
username: ${{ secrets.DOCKER_USER }}
3036
password: ${{ secrets.DOCKER_PASSWORD }}
3137

32-
- name: Build and push
38+
- name: Build and release on dockerhub
3339
uses: docker/build-push-action@v2.7.0
3440
with:
3541
file: support/build.Dockerfile
3642
push: true
3743
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
3844
tags: pldubouilh/gossa:latest,pldubouilh/gossa:${{github.ref_name}}
3945

46+
- name: Build all artifacts
47+
run: make build-all
48+
49+
- name: "Release gh release versioned"
50+
uses: ncipollo/release-action@58ae73b360456532aafd58ee170c045abbeaee37
51+
with:
52+
allowUpdates: true
53+
artifacts: "builds/*"
54+
token: ${{ secrets.GITHUB_TOKEN }}
55+
56+
- name: "Release gh release latest"
57+
uses: ncipollo/release-action@58ae73b360456532aafd58ee170c045abbeaee37
58+
with:
59+
tag: latest
60+
name: Latest
61+
allowUpdates: true
62+
artifacts: "builds/*"
63+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/rc.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: rc
2+
3+
on:
4+
push:
5+
branches:
6+
- 'rc/**'
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
steps:
13+
14+
- name: Set up Go
15+
uses: actions/setup-go@v1
16+
with:
17+
go-version: 1.19.1
18+
id: go
19+
20+
- name: Check out code into the Go module directory
21+
uses: actions/checkout@v1
22+
with:
23+
submodules: true
24+
25+
- name: Run
26+
run: make ci
27+
28+
- name: Build all artifacts
29+
run: make build-all
30+
31+
- name: "Release gh release prerelease"
32+
uses: ncipollo/release-action@58ae73b360456532aafd58ee170c045abbeaee37
33+
with:
34+
allowUpdates: true
35+
prerelease: true
36+
tag: "rc"
37+
artifacts: "builds/*"
38+
token: ${{ secrets.GITHUB_TOKEN }}
39+

0 commit comments

Comments
 (0)