Skip to content

chore: Bump go version to 1.22; Migrate to std http mux #104

chore: Bump go version to 1.22; Migrate to std http mux

chore: Bump go version to 1.22; Migrate to std http mux #104

Workflow file for this run

name: build-lint-docker-images
on:
push:
branches:
- "master"
pull_request:
types: [ opened, synchronize, reopened ]
branches:
- "*"
paths:
- "!**"
- "build/docker/**"
- "!build/docker/**.sh"
- ".github/workflows/dockerfiles.yml"
jobs:
lint-dockerfiles:
strategy:
fail-fast: false
max-parallel: 4
matrix:
dockerfile:
[
"./build/docker/base/go.Dockerfile",
"./build/docker/scrum-report/dev.Dockerfile",
"./build/docker/scrum-report/Dockerfile",
"./build/docker/scrum-report/releaser.Dockerfile",
]
runs-on: "ubuntu-22.04"
name: Lint ${{ matrix.dockerfile }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint
uses: jbergstroem/hadolint-gh-action@v1
with:
dockerfile: ${{ matrix.dockerfile }}
annotate: true
error_level: 2
build:
strategy:
fail-fast: true
max-parallel: 2
matrix:
env:
[
"prod",
"dev",
]
needs: [ lint-dockerfiles ]
name: Build
runs-on: "ubuntu-22.04"
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: 'linux/arm64,linux/amd64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build ${{ matrix.env }} images
run: |
make docker-prepare-images-${{ matrix.env }}