From 77c91a4f63e42791ec294162427981f46941560e Mon Sep 17 00:00:00 2001 From: Charley Wu Date: Thu, 3 Oct 2024 22:54:00 +0800 Subject: [PATCH] Remove the docker push workflow --- .github/workflows/docker-push.yml | 59 ------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 .github/workflows/docker-push.yml diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml deleted file mode 100644 index 8f7e6922..00000000 --- a/.github/workflows/docker-push.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Docker Push - -on: - push: - branches: - - main - paths: - - '.devcontainer/compose.yaml' - - '.devcontainer/keycloak/**' - - '.github/workflows/docker-push.yml' - pull_request: - branches: - - main - paths: - - '.devcontainer/compose.yaml' - - '.devcontainer/keycloak/**' - - '.github/workflows/docker-push.yml' - # Allow manually triggering the workflow. - workflow_dispatch: - -permissions: - contents: read - id-token: write - -jobs: - docker-push: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Authenticate to Google Cloud - uses: google-github-actions/auth@v2 - with: - project_id: ${{ vars.GCP_PROJECT_ID }} - workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }} - - name: Set up Google Cloud SDK - uses: google-github-actions/setup-gcloud@v2 - - name: Set up Docker auth - run: gcloud auth configure-docker ${{ vars.GCP_REGION }}-docker.pkg.dev --quiet - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Set up Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ vars.GCP_REGION }}-docker.pkg.dev/${{ vars.GCP_PROJECT_ID }}/docker/keycloak - tags: | - type=ref,event=pr - type=semver,pattern={{version}} - type=raw,value=latest,enable={{is_default_branch}} - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: .devcontainer/keycloak - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file