From 0d46d2b3eba983ceb36dc8f9ae63f47edac0043f Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Tue, 12 Oct 2021 23:29:10 +0200 Subject: [PATCH] ci: disable docker auto publish (#7615) --- .github/workflows/docker-publish.yml | 60 --------------------- .github/workflows/release-manual-docker.yml | 7 ++- 2 files changed, 5 insertions(+), 62 deletions(-) delete mode 100644 .github/workflows/docker-publish.yml diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml deleted file mode 100644 index f62d5423..00000000 --- a/.github/workflows/docker-publish.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: docker - -on: - schedule: - # Nightly builds capture upstream updates to dependency images such as node. - - cron: '19 17 * * *' - push: - branches: [ master ] - tags: [ '*.*.*' ] - -env: - REGISTRY: docker.io - IMAGE_NAME: parseplatform/parse-server - -jobs: - build: - - runs-on: ubuntu-18.04 - permissions: - contents: read - packages: write - - steps: - - name: Determine branch name - id: branch - run: echo "::set-output name=branch_name::${GITHUB_REF#refs/*/}" - - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set up QEMU - id: qemu - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Log into Docker Hub - if: github.event_name != 'pull_request' - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@v3 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - flavor: | - latest=${{ steps.branch.outputs.branch_name == 'master' }} - - - name: Build and push Docker image - uses: docker/build-push-action@v2 - with: - context: . - platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8 - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/release-manual-docker.yml b/.github/workflows/release-manual-docker.yml index a5daf4a5..59da4170 100644 --- a/.github/workflows/release-manual-docker.yml +++ b/.github/workflows/release-manual-docker.yml @@ -42,11 +42,14 @@ jobs: uses: docker/metadata-action@v3 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + # The following parameter is modified to manually make pre-releases on the `master` branch; + # change this accordingly before adding release automation. flavor: | - latest=${{ steps.branch.outputs.branch_name == 'master' && github.event.inputs.ref == '' }} + latest=false + # The following parameter is modified to manually make pre-releases on the `master` branch; + # change this accordingly before adding release automation. tags: | type=semver,enable=true,pattern={{version}},value=${{ github.event.inputs.ref }} - type=raw,enable=${{ github.event.inputs.ref == '' }},value=latest - name: Build and push Docker image uses: docker/build-push-action@v2 with: