Skip to content

Commit

Permalink
.github/workflows: Publish the Arch Linux image at quay.io/toolbx/...
Browse files Browse the repository at this point in the history
Until now, the Arch Linux image was being published at
quay.io/toolbx-images/archlinux-toolbox:latest.  This renames the image
to arch-toolbox [1] to match the os-release(5) ID on Arch, and changes
the location to quay.io/toolbx/arch-toolbox:latest.

Build and push when there are changes in the 'images/arch' directory
or in the GitHub workflow itself, as well as every other week (7th and
21st days of a month to be precise).

[1] Commit 2568528
    containers#861
  • Loading branch information
debarshiray committed Jun 8, 2023
1 parent b6ca18e commit 4aac4b0
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/arch-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "Images: Build and push Arch Linux"

on:
push:
branches:
- main
paths:
- images/arch/**
- .github/workflows/arch-images.yaml
schedule:
- cron: '0 0 * * MON'

# Prevent multiple workflow runs from racing
concurrency: ${{ github.workflow }}

env:
distro: 'arch'

jobs:
build-and-push-images:
name: "Images: Build and push Arch Linux"

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+github'
password: ${{ secrets.QUAY_ROBOT_TOKEN }}

- name: Build and push ${{ env.distro }}-toolbox image
uses: docker/build-push-action@v3
with:
context: images/${{ env.distro }}
file: images/${{ env.distro }}/Containerfile
platforms: linux/amd64
push: true
no-cache: true
tags: quay.io/toolbx/${{ env.distro }}-toolbox:latest

0 comments on commit 4aac4b0

Please sign in to comment.