From c7746ff91d1b22f5197305cff2e3aa38b8e43811 Mon Sep 17 00:00:00 2001 From: Taqi Tahmid Date: Sat, 17 May 2025 21:28:42 +0300 Subject: [PATCH] fix --- .gitea/workflows/build.yaml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index db6c3c9..ac921f7 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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"