From 2badabb167b5bc67145543873c344d28e52ce7f2 Mon Sep 17 00:00:00 2001 From: Taqi Tahmid Date: Sat, 17 May 2025 21:11:18 +0300 Subject: [PATCH] fix --- .gitea/workflows/build.yaml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index cee16ee..a242eed 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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 .