diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..d00f36a --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,35 @@ +name: Container Build for smtp_imap_monitoring + +on: + push: + branches: + - "master" + schedule: + - cron: "0 2 * * 0" + +jobs: + docker: + runs-on: ubuntu-latest + environment: + name: prod + steps: + - uses: actions/checkout@v3 + - + name: Checkout + uses: actions/checkout@v3 + - + name: Login to Docker Registry + uses: docker/login-action@v2 + with: + registry: ${{ secrets.REGISTRY }} + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASS }} + - + name: build and push smtp_imap monitoring + uses: docker/build-push-action@v3 + with: + context: . + file: Dockerfile.smtp_check + platforms: linux/amd64 + push: true + tags: "${{ secrets.REGISTRY }}/atlantishq/smtp_imap_monitoring:latest"