mirror of
https://github.com/dockersrc/archlinux
synced 2026-01-27 10:34:34 -05:00
.gitea/workflows/docker.yaml .gitea/workflows/publish.yaml .github/workflows/docker.yaml .github/workflows/publish.yaml
64 lines
1.9 KiB
YAML
64 lines
1.9 KiB
YAML
name: archlinux-base
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
pull_request:
|
|
schedule:
|
|
- cron: '0 2 * * 1'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Get Meta
|
|
id: meta
|
|
run: |
|
|
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
|
|
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
|
|
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile.base
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
provenance: false
|
|
annotations: |
|
|
org.opencontainers.image.title=${{ github.repository }}
|
|
org.opencontainers.image.description=Containerized version of ${{ github.repository }}
|
|
org.opencontainers.image.vendor=CasjaysDev
|
|
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
|
|
org.opencontainers.image.url=https://github.com/${{ github.repository }}
|
|
org.opencontainers.image.source=https://github.com/${{ github.repository }}
|
|
org.opencontainers.image.version=base
|
|
org.opencontainers.image.revision=${{ github.sha }}
|
|
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
|
|
tags: |
|
|
ghcr.io/${{ github.repository }}:base
|