diff --git a/.github/workflows/push-docker.yaml b/.github/workflows/push-docker.yaml new file mode 100644 index 0000000..4aa1e81 --- /dev/null +++ b/.github/workflows/push-docker.yaml @@ -0,0 +1,29 @@ +name: Deploy Images to GHCR + +on: + push: + tags: + - "v*.*.*" + +jobs: + push-image: + runs-on: ubuntu-latest + defaults: + run: + working-directory: "./azure-clientid-syncer" + steps: + - name: "Checkout GitHub Action" + uses: actions/checkout@main + + - name: "Login to GitHub Container Registry" + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{github.actor}} + password: ${{secrets.GITHUB_TOKEN}} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + push: true + tags: ghcr.io/shiftavenue/azure-clientid-syncer:latest