diff --git a/.github/workflows/build-images-pr.yml b/.github/workflows/build-images-pr.yml new file mode 100644 index 0000000..8b42421 --- /dev/null +++ b/.github/workflows/build-images-pr.yml @@ -0,0 +1,30 @@ +name: Build and Publish Docker containers + +on: + push: + branches: + - s0me0ne/overhaul + +jobs: + stps-sender: + name: Build docker image + runs-on: ubuntu-latest + environment: main_n_tags + steps: + - name: Check out the repo + uses: actions/checkout@v4 + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + + - name: Build Docker image + uses: docker/build-push-action@v5 + with: + context: . + file: ./utils/dockerfiles/Dockerfile.sender-any + push: true + tags: | + docker.io/paritypr/stps-sender:any-latest + docker.io/paritypr/stps-sender:any-${{ github.sha }}