forked from Maurice/pastabble
ci: update container build script
Some checks failed
Build container / build (push) Has been cancelled
Some checks failed
Build container / build (push) Has been cancelled
This commit is contained in:
@@ -1,32 +1,26 @@
|
||||
name: Container build
|
||||
on: [ push ]
|
||||
name: Build container
|
||||
on:
|
||||
push:
|
||||
schedule:
|
||||
- cron: '0 16 * * FRI'
|
||||
|
||||
jobs:
|
||||
container-build:
|
||||
runs-on: ubuntu-latest
|
||||
if: gitea.ref == 'refs/heads/main'
|
||||
build:
|
||||
runs-on: container-builder
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up BuildX
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build
|
||||
uses: redhat-actions/buildah-build@v2
|
||||
with:
|
||||
endpoint: 'unix:///var/run/docker.sock'
|
||||
- name: Set up QEMU
|
||||
uses: Job79/setup-qemu-action@master
|
||||
- name: Login to Registry
|
||||
uses: docker/login-action@v3
|
||||
image: ${{ github.repository_owner }}/${{ github.event.repository.name }}
|
||||
tags: latest
|
||||
containerfiles: |
|
||||
./Containerfile
|
||||
- name: Push
|
||||
uses: redhat-actions/push-to-registry@v2
|
||||
with:
|
||||
image: ${{ github.repository_owner }}/${{ github.event.repository.name }}
|
||||
tags: latest
|
||||
registry: git.plabble.org
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user