Merge pull request #2271 from devops-infra/dependency/tf-1.9.2-ot-1.7… #954
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: 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/[email protected] | |
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/[email protected] | |
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/[email protected] | |
with: | |
install: true | |
- name: QEMU | |
uses: docker/[email protected] | |
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 }} |