diff --git a/.gitea/workflows/gitea-bp.yaml b/.gitea/workflows/gitea-bp.yaml index 575c2e4..ff34bd8 100644 --- a/.gitea/workflows/gitea-bp.yaml +++ b/.gitea/workflows/gitea-bp.yaml @@ -1,26 +1,36 @@ -name: Build and Push Docker Image -on: - push: - branches: [ main ] +name: Build and Push Image +on: [push] jobs: build: runs-on: ubuntu-latest container: catthehacker/ubuntu:act-latest + steps: - - name: Checkout code + - name: Checkout uses: actions/checkout@v4 - - name: Login to gitea - run: NODE_NO_WARNINGS=1 docker login -u make -p ${{ secrets.TOKEN }} http://gitea-http.gitea.svc.cluster.local:3000 - - - name: Set up Buildx + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + with: + driver: kubernetes + driver-opts: | + namespace=act-runner + qemu.install=true - - name: Build and push image - uses: docker/build-push-action@v6 + - name: Login to Gitea Registry + uses: docker/login-action@v3 + with: + registry: http://gitea-http.gitea:3000 # Replace with your Gitea instance URL + username: make + password: ${{ secrets.TOKEN }} + + - name: Build and Push + uses: docker/build-push-action@v5 with: context: . push: true - tags: make/birdspotter:latest - platforms: linux/amd64,linux/arm64 \ No newline at end of file + platforms: linux/amd64,linux/arm64 + tags: | + http://gitea-http.gitea:3000/make/your-repo:latest + http://gitea-http.gitea:3000/make/your-repo:${{ github.sha }} \ No newline at end of file