ci: use podman instead of docker for container builds
Some checks failed
Build container / build (push) Failing after 5m54s
Some checks failed
Build container / build (push) Failing after 5m54s
This commit is contained in:
parent
b93b0bd735
commit
b81430e204
@ -1,32 +1,27 @@
|
|||||||
name: Container build
|
name: Build container
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 16 * * FRI'
|
- cron: '0 16 * * FRI'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
container-build:
|
build:
|
||||||
runs-on: citadel
|
runs-on: rocky-minimal
|
||||||
if: gitea.ref == 'refs/heads/main'
|
|
||||||
env:
|
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
|
||||||
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.actor }}/${{ github.event.repository.name }}
|
||||||
- name: Login to Registry
|
tags: latest
|
||||||
uses: docker/login-action@v3
|
containerfiles: |
|
||||||
|
./Containerfile
|
||||||
|
- name: Push
|
||||||
|
uses: redhat-actions/push-to-registry@v2
|
||||||
with:
|
with:
|
||||||
registry: git.plabble.org
|
image: ${{ github.actor }}/${{ github.event.repository.name }}
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
tags: latest
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
extra-args: --compression-format zstd:chunked
|
||||||
- name: Build and push
|
registry: ghcr.io
|
||||||
uses: docker/build-push-action@v6
|
username: ${{ github.actor }}
|
||||||
with:
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
context: .
|
|
||||||
file: ./Containerfile
|
|
||||||
push: true
|
|
||||||
tags: git.plabble.org/job79/dev:latest
|
|
||||||
|
Loading…
Reference in New Issue
Block a user