fix
Some checks failed
Build the portfolio website / build-portfolio-website (push) Successful in 51s
Build the portfolio website / build-and-release-image (push) Failing after 11s

This commit is contained in:
2025-05-17 22:04:52 +03:00
parent cbca63c43f
commit b5877f36f5

View File

@ -28,6 +28,7 @@ jobs:
build-and-release-image:
runs-on: ubuntu-latest
container: catthehacker/ubuntu:act-latest
needs: build-portfolio-website
if: success()
steps:
@ -36,15 +37,25 @@ jobs:
with:
fetch-depth: 0 # all history for all branches and tags
- name: Build and push Docker image
env:
REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
USERNAME: ${{ secrets.DOCKER_USERNAME }}
PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
image: quay.io/podman/stable
options: --volumes-from=${{ env.JOB_CONTAINER_NAME }}
run: |
podman build -t "${REGISTRY}/my-portfolio:latest" .
podman login -u "${USERNAME}" -p "${PASSWORD}" "${REGISTRY}"
podman push "${REGISTRY}/my-portfolio:latest"
driver: kubernetes
driver-opts: |
namespace=act-runner
qemu.install=true
- name: Login to Docker registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
tags: ${{ secrets.DOCKER_REGISTRY }}/my-portfolio:latest