From c22508cc2c570ea3b30a6d8732e20930d3fc835f Mon Sep 17 00:00:00 2001 From: Felix Wenzel Date: Mon, 8 Jan 2024 10:59:53 +0100 Subject: [PATCH] add initial pipeline --- .github/workflows/push-docker.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/push-docker.yaml 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