ioteer/.gitea/workflows/build-push.yaml
Tobias Brunner c13f4e6ff5
Some checks failed
Build and Push Image / Build and push image (push) Failing after 5s
install buildah
2023-11-12 20:29:31 +01:00

36 lines
958 B
YAML

name: Build and Push Image
on: [ push ]
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
steps:
- uses: actions/checkout@v2
- name: Install Tools
run: sudo apt-get -y install buildah
- 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 }}"