From e698802c14ee1fe8123d06c8792fd5dc29673adc Mon Sep 17 00:00:00 2001 From: Marco Franke Date: Wed, 5 Jul 2023 11:00:51 +0200 Subject: [PATCH] ci: removed docker.yaml This docker build/publish is now handled in `build-and-release.yaml` to ensure a good flow of builds. --- .github/workflows/docker.yaml | 61 ----------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 .github/workflows/docker.yaml diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml deleted file mode 100644 index 871475aa..00000000 --- a/.github/workflows/docker.yaml +++ /dev/null @@ -1,61 +0,0 @@ -name: Docker build/publish -on: - push: - tags: [v*] -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} -jobs: - docker: - # if: startsWith(github.event.ref, 'refs/tags/v') - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install cosign - if: github.event_name != 'pull_request' - uses: sigstore/cosign-installer@db0f512372e476bcdfc58b21303b1407a4313ccc # v2.6.0 - with: - cosign-release: 'v1.13.1' - - - name: Setup Docker buildx - uses: docker/setup-buildx-action@16c0bc4a6e6ada2cfd8afd41d22d95379cf7c32a - - - name: Log into registry ${{ env.REGISTRY }} - if: github.event_name != 'pull_request' - uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ env.GH_TOKEN }} - - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@v3 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: | - type=semver,pattern={{version}} - type=ref,event=branch - type=raw,value=latest,enable={{ is_default_branch }} - - - - name: get-npm-version - id: package-version - uses: martinbeentjes/npm-get-version-action@v1.3.1 - - - name: Build and push Docker image - id: build-and-push - uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 - with: - context: . - build-args: | - DOCUDIGGER_VERSION=${{ steps.package-version.outputs.current-version}} - - platforms: linux/amd64,linux/arm/v7 - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max