From 97e957d915c21c2476255ace40276be2abbede76 Mon Sep 17 00:00:00 2001 From: marcel Date: Fri, 20 Oct 2023 00:34:35 +0200 Subject: [PATCH] Working ci? Pwease --- .gitea/workflows/buildah-ci.yml | 34 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/buildah-ci.yml b/.gitea/workflows/buildah-ci.yml index 1e1c4ff..dc53378 100644 --- a/.gitea/workflows/buildah-ci.yml +++ b/.gitea/workflows/buildah-ci.yml @@ -1,22 +1,20 @@ -name: Build and Push Image with Buildah -on: [ push ] +name: Build and push Docker image + +on: + push: + branches: + - 'main' jobs: - build: - name: Build and push image + docker: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Build Image - id: build-image - uses: redhat-actions/buildah-build@v2 - with: - image: my-app - tags: latest ${{ github.sha }} - containerfiles: | - ./Containerfile - - - name: Print image url - run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" \ No newline at end of file + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Build and push + uses: docker/build-push-action@v4 + with: + push: true + tags: git.marcelsite.com/marcel/rar-index-app:latest \ No newline at end of file