Switch to docker action
Build website container / Build image (push) Failing after 35s
Details
Build website container / Build image (push) Failing after 35s
Details
This commit is contained in:
parent
58e3d0ab22
commit
f5af83357a
|
@ -13,33 +13,22 @@ jobs:
|
||||||
IMAGE_NAME: namesny-com
|
IMAGE_NAME: namesny-com
|
||||||
REGISTRY: git.namesny.com
|
REGISTRY: git.namesny.com
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
- name: Clone the repository
|
uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v3
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: Install Buildah
|
- name: Login to Docker Hub
|
||||||
run: sudo apt-get update -y && sudo apt-get install -y buildah
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
- name: Buildah Action
|
registry: git.namesny.com
|
||||||
id: build-image
|
username: ${{ gitea.actor }}
|
||||||
uses: redhat-actions/buildah-build@v2
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
with:
|
- name: Build and push
|
||||||
image: ${{ env.IMAGE_NAME }}
|
uses: docker/build-push-action@v5
|
||||||
tags: latest ${{ gitea.sha }}
|
with:
|
||||||
containerfiles: |
|
context: .
|
||||||
./Dockerfile
|
push: true
|
||||||
|
tags: |
|
||||||
- name: Log in to the Container registry
|
Mathis/namesny-com:latest
|
||||||
uses: redhat-actions/podman-login@v1
|
Mathis/namesny-com:${{ gitea.sha }}
|
||||||
with:
|
|
||||||
registry: ${{ env.REGISTRY }}
|
|
||||||
username: ${{ gitea.actor }}
|
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
||||||
|
|
||||||
- name: Push to Container Repository
|
|
||||||
id: push-to-registry
|
|
||||||
uses: redhat-actions/push-to-registry@v2
|
|
||||||
with:
|
|
||||||
image: ${{ steps.build-image.outputs.image }}
|
|
||||||
tags: ${{ steps.build-image.outputs.tags }}
|
|
||||||
registry: ${{ env.REGISTRY }}
|
|
Loading…
Reference in New Issue