Skip to content

Commit

Permalink
Use DOCKERHUB_ORGANIZATION_NAME for docker CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jim60105 committed Dec 20, 2023
1 parent 6879949 commit f3c4f24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/docker-reused-setup-steps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ name: Setup docker
description: Configure the docker workflow.

inputs:
DOCKERHUB_ORGANIZATION_NAME :
required: true
DOCKERHUB_USERNAME:
required: true
DOCKERHUB_TOKEN:
required: true
QUAY_USERNAME:
required: true
QUAY_TOKEN:
required: true
CR_PAT:
required: true
tag:
Expand All @@ -31,7 +29,7 @@ runs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ inputs.DOCKERHUB_USERNAME }}/fc2-live-dl,ghcr.io/${{ github.repository_owner }}/fc2-live-dl,quay.io/${{ github.repository_owner }}/fc2-live-dl
images: ${{ inputs.DOCKERHUB_ORGANIZATION_NAME }}/fc2-live-dl,ghcr.io/${{ github.repository_owner }}/fc2-live-dl
flavor: |
latest=${{ inputs.tag == 'alpine' }}
tags: |
Expand Down Expand Up @@ -63,10 +61,3 @@ runs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ inputs.CR_PAT }}

- name: Login to Quay Container Registry
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ inputs.QUAY_USERNAME }}
password: ${{ inputs.QUAY_TOKEN }}
9 changes: 3 additions & 6 deletions .github/workflows/docker_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ jobs:
id: setup
uses: ./.github/workflows/docker-reused-setup-steps
with:
DOCKERHUB_ORGANIZATION_NAME : ${{ secrets.DOCKERHUB_ORGANIZATION_NAME }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }}
CR_PAT: ${{ secrets.CR_PAT }}
tag: alpine

Expand Down Expand Up @@ -77,10 +76,9 @@ jobs:
id: setup
uses: ./.github/workflows/docker-reused-setup-steps
with:
DOCKERHUB_ORGANIZATION_NAME : ${{ secrets.DOCKERHUB_ORGANIZATION_NAME }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }}
CR_PAT: ${{ secrets.CR_PAT }}
tag: ubi

Expand Down Expand Up @@ -119,10 +117,9 @@ jobs:
id: setup
uses: ./.github/workflows/docker-reused-setup-steps
with:
DOCKERHUB_ORGANIZATION_NAME : ${{ secrets.DOCKERHUB_ORGANIZATION_NAME }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }}
CR_PAT: ${{ secrets.CR_PAT }}
tag: distroless

Expand Down

0 comments on commit f3c4f24

Please sign in to comment.