Skip to content

Commit

Permalink
style: del can_registry
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxeye committed Nov 27, 2024
1 parent ef5bd53 commit e63cfe2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/docker-name-version-arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
###
Expand Down Expand Up @@ -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
25 changes: 0 additions & 25 deletions .github/workflows/docker-name-version-flavour-arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
###
Expand Down Expand Up @@ -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

0 comments on commit e63cfe2

Please sign in to comment.