Skip to content

Use golang 1.22.2 docker image #31

Use golang 1.22.2 docker image

Use golang 1.22.2 docker image #31

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
env:
PROJECT_VERSION: 1.0.0-alpha
steps:
- uses: actions/checkout@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: >
docker buildx build .
--file Dockerfile
--build-arg PROJECT_VERSION="$PROJECT_VERSION"
--tag miguno/golang-docker-build-tutorial:$(date +%s)