Bump actions/checkout from 3 to 4 #59
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build docker image | |
on: push | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
docker_build: | |
strategy: | |
matrix: | |
go-version: [1.19.x, 1.20.x] | |
platform: [ubuntu-latest] # You can test on macos-latest and windows-latest as well | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Init repo | |
run: make init NAME=github.com/ashishb/golang-template-repo | |
- name: Fetch modules | |
run: touch go.sum && go mod tidy | |
- name: Docker build | |
run: make docker_build |