Skip to content

Commit

Permalink
bump go & auto-release from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pldubouilh committed Sep 17, 2022
1 parent a1613a0 commit 382b2e3
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml → .github/workflows/always.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: ci
name: always
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.18
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.18
go-version: 1.19.1
id: go

- name: Check out code into the Go module directory
Expand Down
26 changes: 25 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
with:
submodules: true

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.19.1
id: go

- name: Set env
run: echo "GIT_TAG=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV

Expand All @@ -29,11 +35,29 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push
- name: Build and release on dockerhub
uses: docker/[email protected]
with:
file: support/build.Dockerfile
push: true
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
tags: pldubouilh/gossa:latest,pldubouilh/gossa:${{github.ref_name}}

- name: Build all artifacts
run: make build-all

- name: "Release gh release versioned"
uses: ncipollo/release-action@58ae73b360456532aafd58ee170c045abbeaee37
with:
allowUpdates: true
artifacts: "builds/*"
token: ${{ secrets.GITHUB_TOKEN }}

- name: "Release gh release latest"
uses: ncipollo/release-action@58ae73b360456532aafd58ee170c045abbeaee37
with:
tag: latest
name: Latest
allowUpdates: true
artifacts: "builds/*"
token: ${{ secrets.GITHUB_TOKEN }}
39 changes: 39 additions & 0 deletions .github/workflows/rc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: rc

on:
push:
branches:
- 'rc/**'

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.19.1
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1
with:
submodules: true

- name: Run
run: make ci

- name: Build all artifacts
run: make build-all

- name: "Release gh release prerelease"
uses: ncipollo/release-action@58ae73b360456532aafd58ee170c045abbeaee37
with:
allowUpdates: true
prerelease: true
tag: "rc"
artifacts: "builds/*"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 382b2e3

Please sign in to comment.