diff --git a/.gitea/workflows/build-and-push.yaml b/.gitea/workflows/build-and-push.yaml index 0472871..c7af448 100644 --- a/.gitea/workflows/build-and-push.yaml +++ b/.gitea/workflows/build-and-push.yaml @@ -1,5 +1,8 @@ name: Build Image using Dockerfile -on: [push] +on: + push: + branches: + - main jobs: build: @@ -7,13 +10,18 @@ jobs: runs-on: ubuntu-latest steps: + - name: Setup Buildah + run: | + apt -y update + apt -y install buildah + - uses: actions/checkout@v3 - name: Buildah Action uses: redhat-actions/buildah-build@v2 with: image: my-new-image - tags: v1 ${{ github.sha }} + tags: latest ${{ github.sha }} containerfiles: | ./Dockerfile build-args: |