Skip to content

🐬 Builds ArchLinux Images for DockerHub 🐬 #19

🐬 Builds ArchLinux Images for DockerHub 🐬

🐬 Builds ArchLinux Images for DockerHub 🐬 #19

Workflow file for this run

name: 🐬 Builds ArchLinux Images for DockerHub 🐬
#REF: https://docs.docker.com/build/ci/github-actions/multi-platform/
#SECRETS: DOCKERHUB_USERNAME || DOCKERHUB_TOKEN
#URL: https://hub.docker.com/r/azathothas/archlinux/tags
#For: https://github.com/Azathothas/Toolpacks/settings/actions/runners
#------------------------------------------------------------------------------------#
on:
#push:
workflow_dispatch:
schedule:
- cron: "30 08 * * 4" # 08:30 PM UTC Fri (02:15 AM NPT Fri Midnight)
# - cron: "*/30 * * * *" # Every 30 Mins
defaults:
run:
shell: bash
working-directory: /tmp
permissions:
contents: read
packages: write
#------------------------------------------------------------------------------------#
jobs:
build-push-docker-alpine:
name: Push (ArchLinux) --> Docker Hub
runs-on: ubuntu-latest
steps:
- name: Debloat Runner
run: |
#Presets
set +x ; set +e
#--------------#
bash <(curl -qfsSL "https://pub.ajam.dev/repos/Azathothas/Arsenal/misc/Github/Runners/Ubuntu/debloat.sh")
continue-on-error: true
- name: Setup Env
run: |
#Presets
set +x ; set +e
#--------------#
#Docker Tags
DOCKER_TAG="v$(date +'%Y.%m.%d')" && export DOCKER_TAG="$DOCKER_TAG"
echo "DOCKER_TAG=$DOCKER_TAG" >> "$GITHUB_ENV"
#Repo
mkdir -p "/tmp/ARCHLINUX" && pushd "/tmp/ARCHLINUX" >/dev/null 2>&1
git clone --filter="blob:none" --depth="1" "https://github.com/Azathothas/docker-archlinux"
popd >/dev/null 2>&1
continue-on-error: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
continue-on-error: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
continue-on-error: true
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: "${{ secrets.DOCKERHUB_USERNAME }}"
password: "${{ secrets.DOCKERHUB_TOKEN }}"
continue-on-error: true
#https://hub.docker.com/r/azathothas/archlinux
- name: Docker Build and Push (archlinux)
uses: docker/build-push-action@v6
with:
context: "/tmp/ARCHLINUX/docker-archlinux"
platforms: "linux/386,linux/amd64,linux/arm64,linux/arm/v7,linux/riscv64,linux/ppc64le"
tags: |
azathothas/archlinux:latest
azathothas/archlinux:${{ env.DOCKER_TAG }}
push: true
continue-on-error: true