another approach
Some checks failed
Build and Push Image / Build and push image (push) Failing after 34s
Some checks failed
Build and Push Image / Build and push image (push) Failing after 34s
This commit is contained in:
parent
fab5b569a8
commit
5221a58b73
|
@ -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
|
Loading…
Reference in a new issue