another approach
Some checks failed
Build and Push Image / Build and push image (push) Failing after 34s

This commit is contained in:
Tobias Brunner 2023-11-14 21:49:39 +01:00
parent fab5b569a8
commit 5221a58b73
Signed by: tobru
SSH key fingerprint: SHA256:kywVhvCA+MIxL6eBgoQa+BfC/ROJqcfD2bpy1PR6Ebk

View file

@ -8,29 +8,25 @@ jobs:
container: catthehacker/ubuntu:act-latest container: catthehacker/ubuntu:act-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Install Tools - name: Install Tools
run: sudo apt-get -y update && sudo apt-get -y install buildah run: sudo apt-get -y update && sudo apt-get -y install docker
- name: Build Image - name: Set up Docker Buildx
id: build-image uses: docker/setup-buildx-action@v3
uses: redhat-actions/buildah-build@v2
with:
image: ioteer
tags: latest ${{ github.sha }}
containerfiles: |
./Dockerfile
- name: Push To git.tbrnt.ch - name: Login to Docker Registry
id: push-to-gitea uses: docker/login-action@v3
uses: redhat-actions/push-to-registry@v2
with: with:
image: ${{ steps.build-image.outputs.image }} registry: git.tbrnt.ch
tags: ${{ steps.build-image.outputs.tags }}
registry: git.tbrnt.ch/tobru
username: ${{ secrets.REGISTRY_USERNAME }} username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN }}
- name: Print image url - name: Build and push
run: echo "Image pushed to ${{ steps.push-to-gitea.outputs.registry-paths }}" uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
git.tbrnt.ch/tobru/ioteer:latest