ci: add automatic container build #3

Closed
Job79 wants to merge 16 commits from Job79/pastabble:main into main
Showing only changes of commit d23ea2eea1 - Show all commits

View File

@@ -1,32 +1,26 @@
name: Container build name: Build container
on: [ push ] on:
push:
schedule:
- cron: '0 16 * * FRI'
jobs: jobs:
container-build: build:
runs-on: ubuntu-latest runs-on: container-builder
if: gitea.ref == 'refs/heads/main'
steps: steps:
- name: Clone repo - uses: actions/checkout@v4
uses: actions/checkout@v4 - name: Build
- name: Set up BuildX uses: redhat-actions/buildah-build@v2
uses: docker/setup-buildx-action@v2
with: with:
endpoint: 'unix:///var/run/docker.sock' image: ${{ github.repository_owner }}/${{ github.event.repository.name }}
- name: Set up QEMU tags: latest
uses: Job79/setup-qemu-action@master containerfiles: |
- name: Login to Registry ./Containerfile
uses: docker/login-action@v3 - name: Push
uses: redhat-actions/push-to-registry@v2
with: with:
image: ${{ github.repository_owner }}/${{ github.event.repository.name }}
tags: latest
registry: git.plabble.org registry: git.plabble.org
username: ${{ secrets.REGISTRY_USERNAME }} username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Containerfile
platforms: |
linux/arm64
push: true
tags: |
git.plabble.org/job79/pastabble:latest