Skip to content

Merge pull request #2520 from devops-infra/dependabot/pip/pip/azure/m… #998

Merge pull request #2520 from devops-infra/dependabot/pip/pip/azure/m…

Merge pull request #2520 from devops-infra/dependabot/pip/pip/azure/m… #998

Workflow file for this run

name: Push to master
on:
push:
branches:
- master
jobs:
labels:
name: Repo labels
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Labels' config
shell: bash
run: |
mkdir -p .tmp
curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/.github/labels.yml -o .tmp/labels.yml
- name: Update labels
uses: crazy-max/ghaction-github-labeler@v5.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .tmp/labels.yml
lint:
name: Linters
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Hadolint
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile
build_and_push:
name: Build & push
needs: lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
flavour: [slim, plain, aws, azure, gcp, aws-azure, aws-gcp, azure-gcp, aws-azure-gcp, yc]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker Buildx
uses: docker/setup-buildx-action@v3.8.0
with:
install: true
- name: QEMU
uses: docker/setup-qemu-action@v3.2.0
with:
image: tonistiigi/binfmt:latest
platforms: amd64,arm64
- name: Build & push
env:
DOCKER_BUILDKIT: 1
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TERM: xterm-256color
run: make push-${{ matrix.flavour }}