fix
Some checks failed
Build the portfolio website / build-portfolio-website (push) Successful in 45s
Build the portfolio website / build-and-release-image (push) Has been cancelled

This commit is contained in:
2025-05-17 21:11:18 +03:00
parent 3f5facc265
commit 2badabb167

View File

@ -28,11 +28,14 @@ jobs:
build-and-release-image:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-22.04
needs: build-portfolio-website
if: success()
steps:
- name: Install Buildah
run: |
sudo apt-get update
sudo apt-get install -y buildah
- name: Checkout
uses: actions/checkout@v4
with:
@ -44,16 +47,15 @@ jobs:
driver: docker-container
- name: Login to Docker registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
env:
REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
USERNAME: ${{ secrets.DOCKER_USERNAME }}
PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
buildah login -u "$USERNAME" -p "$PASSWORD" "$REGISTRY"
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
tags: ${{ secrets.DOCKER_REGISTRY }}/my-portfolio:latest
- name: Build Image with Buildah
env:
REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
run: |
buildah bud -t "$REGISTRY"/my-portfolio-app:latest .