Skip to content

Merge pull request #394 from aerokube/dependabot/go_modules/golang.or… #35

Merge pull request #394 from aerokube/dependabot/go_modules/golang.or…

Merge pull request #394 from aerokube/dependabot/go_modules/golang.or… #35

Workflow file for this run

name: build
on:
push:
branches:
- master
jobs:
golang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Golang
uses: actions/setup-go@v2
with:
go-version: ~1.21.5
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: ci/test.sh
- name: Build
run: ci/build.sh
- name: Latest image
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: ci/docker-push.sh latest
- name: Latest docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ci/docs.sh latest ${{ secrets.GITHUB_TOKEN }}