From cbca63c43f29b46e5ca24c791f697af2e415975a Mon Sep 17 00:00:00 2001 From: Taqi Tahmid Date: Sat, 17 May 2025 21:53:15 +0300 Subject: [PATCH] fix --- .gitea/workflows/build.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index b4d4917..62cafef 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -36,13 +36,15 @@ jobs: with: fetch-depth: 0 # all history for all branches and tags - - name: Login to Image registry - image: quay.io/podman/stable - environment: + - name: Build and push Docker image + env: REGISTRY: ${{ secrets.DOCKER_REGISTRY }} USERNAME: ${{ secrets.DOCKER_USERNAME }} PASSWORD: ${{ secrets.DOCKER_PASSWORD }} - commands: | - podman build -t "${REGISTRY}/my-portfolio:latest" . - podman login -u "${USERNAME}" -p "${PASSWORD}" "${REGISTRY}" - podman push "${REGISTRY}/my-portfolio:latest" + 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"