use different endpoint for github packages and dockerhub

This commit is contained in:
Jonathan Treffler 2022-12-07 01:03:48 +00:00
parent 414eabdf7c
commit 7eab4e94b9

View File

@ -47,8 +47,8 @@ jobs:
- name: Push tags to GitHub Container Registry
if: ${{ github.ref == format('refs/heads/{0}-{1}', env.BASEIMAGE, env.MODNAME) && env.CR_USER && env.CR_PAT }}
run: |
docker push ghcr.io/${ENDPOINT}:${BASEIMAGE}-${MODNAME}-${{ github.sha }}
docker push ghcr.io/${ENDPOINT}:${BASEIMAGE}-${MODNAME}
docker push ghcr.io/JonathanTreffler/docker-mods:${BASEIMAGE}-${MODNAME}-${{ github.sha }}
docker push ghcr.io/JonathanTreffler/docker-mods:${BASEIMAGE}-${MODNAME}
- name: Login to DockerHub
if: ${{ github.ref == format('refs/heads/{0}-{1}', env.BASEIMAGE, env.MODNAME) && env.DOCKERUSER && env.DOCKERPASS }}