@@ -43,11 +43,11 @@ jobs:
4343
4444 - name : transmission-show (pull or build)
4545 run : |
46- tag_name="ghcr.io/plowsof /monero-torrent-show:latest"
46+ tag_name="ghcr.io/${GITHUB_REPOSITORY_OWNER} /monero-torrent-show:latest"
4747 case "${{ steps.changes.outputs.transmission }}" in
4848 true)
4949 docker build -f ./.github/workflows/docker/Dockerfile.transmission -t $tag_name .
50- docker push -a ghcr.io/plowsof /monero-torrent-show
50+ docker push -a ghcr.io/${GITHUB_REPOSITORY_OWNER} /monero-torrent-show
5151 ;;
5252 *)
5353 docker pull "$tag_name" || docker build -f ./.github/workflows/docker/Dockerfile.transmission -t "$tag_name" .
7474 path : ./downloads
7575 key : monero-binaries-${{ env.VERSION }}-gui-${{ env.VERSION_GUI }}
7676
77+ - name : Set image owner for docker-compose
78+ run : |
79+ echo "IMAGE_OWNER=${{ github.repository_owner }}" >> $GITHUB_ENV
80+
7781 - if : ${{ steps.binaries_cache.outputs.cache-hit != 'true' }}
7882 name : Run remote profile
7983 run : |
@@ -109,16 +113,16 @@ jobs:
109113 INFOHASH="${INFOHASH%%&*}"
110114 INFOHASH_GUI="${MAGNET_LINK_GUI#*btih:}"
111115 INFOHASH_GUI="${INFOHASH_GUI%%&*}"
112- TORRENT_URL="https://github.com/plowsof/monero-torrent /releases/download/${GITHUB_REF_NAME}/monero-${VERSION}.torrent"
113- TORRENT_URL_GUI="https://github.com/plowsof/monero-torrent /releases/download/${GITHUB_REF_NAME}/monero-gui-${VERSION_GUI}.torrent"
116+ TORRENT_URL="https://github.com/${GITHUB_REPOSITORY} /releases/download/${GITHUB_REF_NAME}/monero-${VERSION}.torrent"
117+ TORRENT_URL_GUI="https://github.com/${GITHUB_REPOSITORY} /releases/download/${GITHUB_REF_NAME}/monero-gui-${VERSION_GUI}.torrent"
114118 echo "INFOHASH=$INFOHASH" >> $GITHUB_ENV
115119 echo "INFOHASH_GUI=$INFOHASH_GUI" >> $GITHUB_ENV
116120 echo "TORRENT_URL=$TORRENT_URL" >> $GITHUB_ENV
117121 echo "TORRENT_URL_GUI=$TORRENT_URL_GUI" >> $GITHUB_ENV
118122
119123 - name : Push new image to ghcr
120124 if : github.ref_type == 'tag' || ( steps.changes.outputs.src == 'true' && github.ref == 'refs/heads/main' )
121- run : docker push -a ghcr.io/plowsof /monero-torrent-build-env
125+ run : docker push -a ghcr.io/${GITHUB_REPOSITORY_OWNER} /monero-torrent-build-env
122126
123127 - if : ${{ steps.binaries_cache.outputs.cache-hit != 'true' }}
124128 name : Compare hashes for local/remote build and write summary
0 commit comments