From d1156ebc76e9e9397247c2207712ec05334d5bf1 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 1 Feb 2026 22:26:53 +0100 Subject: [PATCH] fix(ci): use docker/login-action action --- .gitea/workflows/artifacthub-metadata.yaml | 30 +++++++--------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/artifacthub-metadata.yaml b/.gitea/workflows/artifacthub-metadata.yaml index b84b528..c1c9629 100644 --- a/.gitea/workflows/artifacthub-metadata.yaml +++ b/.gitea/workflows/artifacthub-metadata.yaml @@ -11,37 +11,25 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6.0.2 + - uses: docker/login-action@v3.7.0 + with: + registry: git.cryptic.systems + username: ${{ github.repository_owner }} + password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} + - uses: docker/login-action@v3.7.0 + with: + username: ${{ secrets.DOCKER_IO_USERNAME }} + password: ${{ secrets.DOCKER_IO_PASSWORD }} - uses: oras-project/setup-oras@v1.2.1 with: version: 1.2.2 # renovate: datasource=github-tags depName=oras-project/oras extractVersion='^v?(?.*)$' - - name: Login to OCI registry - run: | - echo "${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}" | \ - oras login git.cryptic.systems \ - --username ${{ github.repository_owner }} \ - --password-stdin - - name: Push artifacthub-repo.yml to git.cryptic.systems run: | oras push git.cryptic.systems/volker.raschek/dcmerge:artifacthub.io \ --config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \ artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml - - - name: Login to docker.io - run: | - echo "${{ secrets.DOCKER_IO_PASSWORD }}" | \ - oras login docker.io \ - --username ${{ secrets.DOCKER_IO_USERNAME }} \ - --password-stdin - - name: Push artifacthub-repo.yml to docker.io run: | oras push docker.io/volkerraschek/dcmerge:artifacthub.io \ --config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \ artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml - - - name: Logout from registries - if: always() - run: | - oras logout git.cryptic.systems - oras logout docker.io