use buildah for building
Some checks failed
Build and Push Image / Build and push image (push) Failing after 11s

This commit is contained in:
Tobias Brunner 2023-11-08 07:50:57 +01:00
parent 4d8a59121b
commit 7153f42aff
Signed by: tobru
SSH key fingerprint: SHA256:kywVhvCA+MIxL6eBgoQa+BfC/ROJqcfD2bpy1PR6Ebk

View file

@ -1,30 +1,32 @@
name: ci name: Build and Push Image
on: [ push ]
on:
push:
branches:
- 'master'
jobs: jobs:
docker: build:
name: Build and push image
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- - uses: actions/checkout@v2
name: Set up QEMU
uses: docker/setup-qemu-action@v3 - name: Build Image
- id: build-image
name: Set up Docker Buildx uses: redhat-actions/buildah-build@v2
uses: docker/setup-buildx-action@v3 with:
- image: ioteer
name: Login to Gitea Registry tags: latest ${{ github.sha }}
uses: docker/login-action@v3 containerfiles: |
with: ./Dockerfile
registry: git.tbrnt.ch
username: ${{ secrets.REGISTRY_USERNAME }} - name: Push To git.tbrnt.ch
password: ${{ secrets.REGISTRY_TOKEN }} id: push-to-gitea
- uses: redhat-actions/push-to-registry@v2
name: Build and push with:
uses: docker/build-push-action@v5 image: ${{ steps.build-image.outputs.image }}
with: tags: ${{ steps.build-image.outputs.tags }}
push: true registry: git.tbrnt.ch/tobru
tags: git.tbrnt.ch/tobru/ioteer:latest username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-gitea.outputs.registry-paths }}"