From e63cfe2a04c684ec94de687b5d47ef8f3552e25c Mon Sep 17 00:00:00 2001 From: linuxeye Date: Wed, 27 Nov 2024 10:14:57 +0800 Subject: [PATCH] style: del can_registry --- .../workflows/docker-name-version-arch.yml | 24 ------------------ .../docker-name-version-flavour-arch.yml | 25 ------------------- 2 files changed, 49 deletions(-) diff --git a/.github/workflows/docker-name-version-arch.yml b/.github/workflows/docker-name-version-arch.yml index 126f1c8..853e284 100644 --- a/.github/workflows/docker-name-version-arch.yml +++ b/.github/workflows/docker-name-version-arch.yml @@ -22,10 +22,6 @@ on: description: 'The ref build matrix as JSON string (list of git refs to build/deploy).' required: false type: string - can_registry: - description: 'Determines whether this workflow will also registry (login and push).' - required: false - type: boolean ### ### Secrets ### @@ -268,23 +264,3 @@ jobs: with: command: | make manifest-push NAME=${{ matrix.name }} VERSION="${{ matrix.version }}" TAG=${{ steps.tag.outputs.docker-tag }} - - # ------------------------------------------------------------ - # REGISTRY - # ------------------------------------------------------------ - - name: "[REGISTRY] Login" - uses: docker/login-action@v3 - with: - registry: ${{ secrets.REGISTRY_URL }} - username: ${{ secrets.REGISTRY_USERNAME }} - password: ${{ secrets.REGISTRY_PASSWORD }} - if: inputs.can_registry - - - name: "[REGISTRY] Push" - uses: linuxeye/shell-command-retry-action@master - with: - command: | - docker pull bypanel/${{ matrix.name }}:${{ steps.tag.outputs.docker-tag }} - docker tag bypanel/${{ matrix.name }}:${{ steps.tag.outputs.docker-tag }} ${{ secrets.REGISTRY_URL }}/bypanel/${{ matrix.name }}:${{ steps.tag.outputs.docker-tag }} - docker push ${{ secrets.REGISTRY_URL }}/bypanel/${{ matrix.name }}:${{ steps.tag.outputs.docker-tag }} - if: inputs.can_registry diff --git a/.github/workflows/docker-name-version-flavour-arch.yml b/.github/workflows/docker-name-version-flavour-arch.yml index 5183ec8..c81c17f 100644 --- a/.github/workflows/docker-name-version-flavour-arch.yml +++ b/.github/workflows/docker-name-version-flavour-arch.yml @@ -22,10 +22,6 @@ on: description: 'The ref build matrix as JSON string (list of git refs to build/deploy).' required: false type: string - can_registry: - description: 'Determines whether this workflow will also registry (login and push).' - required: false - type: boolean ### ### Secrets ### @@ -268,24 +264,3 @@ jobs: with: command: | make manifest-push NAME=${{ matrix.name }} VERSION="${{ matrix.version }}" FLAVOUR=${{ matrix.flavour }} TAG=${{ steps.tag.outputs.docker-tag }} - - - # ------------------------------------------------------------ - # REGISTRY - # ------------------------------------------------------------ - - name: "[REGISTRY] Login" - uses: docker/login-action@v3 - with: - registry: ${{ secrets.REGISTRY_URL }} - username: ${{ secrets.REGISTRY_USERNAME }} - password: ${{ secrets.REGISTRY_PASSWORD }} - if: inputs.can_registry - - - name: "[REGISTRY] Push" - uses: linuxeye/shell-command-retry-action@master - with: - command: | - docker pull bypanel/${{ matrix.name }}:${{ steps.tag.outputs.docker-tag }} - docker tag bypanel/${{ matrix.name }}:${{ steps.tag.outputs.docker-tag }} ${{ secrets.REGISTRY_URL }}/bypanel/${{ matrix.name }}:${{ steps.tag.outputs.docker-tag }} - docker push ${{ secrets.REGISTRY_URL }}/bypanel/${{ matrix.name }}:${{ steps.tag.outputs.docker-tag }} - if: inputs.can_registry