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

This commit is contained in:
2025-05-17 21:28:42 +03:00
parent aad5dc83e1
commit c7746ff91d

View File

@ -28,14 +28,11 @@ jobs:
build-and-release-image:
runs-on: ubuntu-latest
container:
image: quay.io/podman/stable
needs: build-portfolio-website
if: success()
steps:
- name: Install Buildah
run: |
apt-get update
apt-get install -y buildah
- name: Checkout
uses: actions/checkout@v4
with:
@ -47,10 +44,6 @@ jobs:
USERNAME: ${{ secrets.DOCKER_USERNAME }}
PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
sudo buildah login -u "$USERNAME" -p "$PASSWORD" "$REGISTRY"
- name: Build Image with Buildah
env:
REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
run: |
sudo buildah bud -t "$REGISTRY"/my-portfolio-app:latest .
podman build -t "${REGISTRY}/my-portfolio:latest" .
podman login -u "${USERNAME}" -p "${PASSWORD}" "${REGISTRY}"
podman push "${REGISTRY}/my-portfolio:latest"