From 2a6d9c22bb3ce2d589b186b7f78ca0ede61807f5 Mon Sep 17 00:00:00 2001 From: yubiuser Date: Sun, 8 Jun 2025 16:44:35 +0200 Subject: [PATCH] Remove composite login action Signed-off-by: yubiuser --- .github/actions/login-repo/action.yml | 35 ----------------------- .github/dependabot.yml | 1 - .github/workflows/build-and-publish.yml | 38 +++++++++++++++++-------- 3 files changed, 26 insertions(+), 48 deletions(-) delete mode 100644 .github/actions/login-repo/action.yml diff --git a/.github/actions/login-repo/action.yml b/.github/actions/login-repo/action.yml deleted file mode 100644 index 0d0e2c8..0000000 --- a/.github/actions/login-repo/action.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Login to container registries -description: Login to container registries Docker Hub and GitHub Container Registry - -inputs: - # Actions cannot access secrets so pass them in as inputs - docker_username: - required: true - description: The username to use to login to Docker Hub - docker_password: - required: true - description: The password to use to login to Docker Hub - ghcr_username: - required: true - description: The username to use to login to GitHub Container Registry - ghcr_password: - required: true - description: The password to use to login to GitHub Container Registry - -runs: - using: "composite" - steps: - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - registry: docker.io - username: ${{ inputs.docker_username }} - password: ${{ inputs.docker_password }} - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ inputs.ghcr_username }} - password: ${{ inputs.ghcr_password }} \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9e1ebf3..09030cc 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,7 +4,6 @@ updates: - package-ecosystem: "github-actions" directories: - "/" - - "/.github/actions/login-repo/" schedule: interval: "weekly" day: saturday diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 7b464d8..ce7c319 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -53,13 +53,20 @@ jobs: type=ref,event=branch,enable=${{ github.event_name != 'schedule' }} type=ref,event=tag - - name: Login to DockerHub and GitHub Container Registry - uses: ./.github/actions/login-repo + - + name: Login to Docker Hub + uses: docker/login-action@v3 with: - docker_username: ${{ secrets.DOCKERHUB_USER }} - docker_password: ${{ secrets.DOCKERHUB_PASS }} - ghcr_username: ${{ github.repository_owner }} - ghcr_password: ${{ secrets.GITHUB_TOKEN }} + registry: docker.io + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_PASS }} + - + name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -142,13 +149,20 @@ jobs: type=ref,event=branch,enable=${{ github.event_name != 'schedule' }} type=ref,event=tag - - name: Login to DockerHub and GitHub Container Registry - uses: ./.github/actions/login-repo + - + name: Login to Docker Hub + uses: docker/login-action@v3 with: - docker_username: ${{ secrets.DOCKERHUB_USER }} - docker_password: ${{ secrets.DOCKERHUB_PASS }} - ghcr_username: ${{ github.repository_owner }} - ghcr_password: ${{ secrets.GITHUB_TOKEN }} + registry: docker.io + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_PASS }} + - + name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Create manifest list and push (DockerHub and GitHub Container Registry) working-directory: /tmp/digests