ioteer/.gitea/workflows/build-push.yaml

32 lines
842 B
YAML
Raw Normal View History

2023-11-08 06:50:57 +00:00
name: Build and Push Image
on: [ push ]
2023-11-08 06:46:55 +00:00
jobs:
2023-11-08 06:50:57 +00:00
build:
name: Build and push image
2023-11-08 06:46:55 +00:00
runs-on: ubuntu-latest
2023-11-08 06:50:57 +00:00
2023-11-08 06:46:55 +00:00
steps:
2023-11-08 06:50:57 +00:00
- 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 }}"