Arch Linux: Build and push toolbx image #68
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: "Arch Linux: Build and push toolbx image" | |
permissions: read-all | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- archlinux/** | |
- .github/workflows/archlinux.yaml | |
schedule: | |
- cron: '0 0 * * MON' | |
# Prevent multiple workflow runs from racing | |
concurrency: ${{ github.workflow }} | |
env: | |
distro: 'archlinux' | |
distro_pretty: 'Arch Linux' | |
jobs: | |
build-and-push-images: | |
name: Build and push images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Quay.io | |
uses: docker/login-action@v2 | |
with: | |
registry: quay.io | |
username: 'toolbx-images+github' | |
password: ${{ secrets.QUAY_ROBOT_TOKEN }} | |
- name: Build and push ${{ env.distro_pretty }} toolbx image | |
uses: docker/build-push-action@v3 | |
with: | |
context: ${{ env.distro }} | |
file: ${{ env.distro }}/Containerfile | |
platforms: linux/amd64 | |
push: true | |
no-cache: true | |
tags: quay.io/toolbx-images/${{ env.distro }}-toolbox:latest |