ioteer/.gitea/workflows/build-push.yaml
Tobias Brunner 7153f42aff
Some checks failed
Build and Push Image / Build and push image (push) Failing after 11s
use buildah for building
2023-11-08 07:50:57 +01:00

32 lines
842 B
YAML

name: Build and Push Image
on: [ push ]
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ioteer
tags: latest ${{ github.sha }}
containerfiles: |
./Dockerfile
- name: Push To git.tbrnt.ch
id: push-to-gitea
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: git.tbrnt.ch/tobru
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-gitea.outputs.registry-paths }}"