File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040 ]
4141 }]
4242
43+ dockerhub-publish :
44+ name : Dockerhub Publish
45+ needs : docker-build-images
46+ runs-on : self-hosted
47+ steps :
48+ - uses : docker/login-action@v3
49+ with :
50+ registry : " ghcr.io"
51+ username : ${{ github.repository_owner }}
52+ password : ${{ secrets.GITHUB_TOKEN }}
53+
54+ - uses : docker/login-action@v3
55+ with :
56+ registry : " docker.io"
57+ username : ${{ secrets.DOCKERHUB_REGISTRY_USER }}
58+ password : ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }}
59+
60+ - name : Push built images to Docker.io
61+ run : |
62+ APP_IMAGE="${{ fromJson(needs.docker-build-images.outputs.built-images).app.images[0] }}"
63+ docker pull "$APP_IMAGE"
64+ APP_TAG="${{ fromJson(needs.docker-build-images.outputs.built-images).APP.tags[0] }}"
65+ APP_REGISTRY_PATH="docker.io/webofmars"
66+ APP_DOCKERIO_IMAGE="${APP_REGISTRY_PATH}/http-header-authenticator:$APP_TAG"
67+ docker tag "$APP_IMAGE" "$APP_DOCKERIO_IMAGE"
68+ docker push "$APP_DOCKERIO_IMAGE"
69+
4370 update_release_draft :
4471 # we want to publish a new tag only if ci succeeds
4572 needs : ci
You can’t perform that action at this time.
0 commit comments