Files
atlantis/.github/workflows/atlantis-base.yml
Rui Chen b3b110753f workflows: update runner to use ubuntu-22.04 (#2502)
Signed-off-by: Rui Chen <rui@chenrui.dev>

Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-09-07 20:23:57 -04:00

52 lines
1.3 KiB
YAML

name: atlantis-base
on:
push:
paths:
- 'docker-base/**'
- '.github/workflows/atlantis-base.yml'
branches:
- "master"
workflow_dispatch:
defaults:
run:
working-directory: docker-base
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
image: tonistiigi/binfmt:latest
platforms: arm64,arm
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Packages Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: echo "TODAY=$(date +"%Y.%m.%d")" >> $GITHUB_ENV
- name: Build and push atlantis-base:${{env.TODAY}} image
uses: docker/build-push-action@v3
with:
context: docker-base
platforms: linux/arm64/v8,linux/amd64,linux/arm/v7
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/atlantis-base:${{env.TODAY}}
ghcr.io/${{ github.repository_owner }}/atlantis-base:latest