From 3afb5a8ebfd0a9a54d062aab4a392977a49303db Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Tue, 6 May 2025 22:10:01 +0200 Subject: [PATCH] fix(ci): sync to docker.io --- .gitea/workflows/release.yaml | 22 ++++++++++++++++++- .../update-docker-hub-description.yaml | 21 ++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/update-docker-hub-description.yaml diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index cb2cf1e..e555b01 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -76,4 +76,24 @@ jobs: --amend git.cryptic.systems/volker.raschek/docker-compose:${TAG}-amd64 \ --amend git.cryptic.systems/volker.raschek/docker-compose:${TAG}-arm64 - docker manifest push git.cryptic.systems/volker.raschek/docker-compose:${TAG} \ No newline at end of file + docker manifest push git.cryptic.systems/volker.raschek/docker-compose:${TAG} + + sync-to-hub-docker-io: + needs: + - push-manifest + runs-on: ubuntu-latest + steps: + - name: Copy images to docker.io + run: | + TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm') + + apt-get update --yes + apt-get install --yes skopeo + skopeo copy \ + --all \ + --dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \ + --dest-username ${{ secrets.DOCKER_IO_USERNAME }} \ + --src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \ + --src-username volker.raschek \ + docker://git.cryptic.systems/volker.raschek/docker-compose:${TAG} \ + docker://docker.io/volkerraschek/docker-compose:${TAG} \ No newline at end of file diff --git a/.gitea/workflows/update-docker-hub-description.yaml b/.gitea/workflows/update-docker-hub-description.yaml new file mode 100644 index 0000000..1435685 --- /dev/null +++ b/.gitea/workflows/update-docker-hub-description.yaml @@ -0,0 +1,21 @@ +name: Update Docker Hub Description + +on: + push: + branches: + - master + paths: + - README.md + +jobs: + update-description-on-hub-docker-io: + runs-on: + - ubuntu-latest + steps: + - uses: actions/checkout@v4.2.2 + - uses: peter-evans/dockerhub-description@v4.0.2 + with: + username: ${{ secrets.DOCKER_IO_USERNAME }} + password: ${{ secrets.DOCKER_IO_PASSWORD }} + repository: volkerraschek/docker-compose + readme-filepath: README.md \ No newline at end of file