mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-01-08 06:53:05 -06:00
Replace use of secret for org name (#1662)
Rely on whether docker username/token is available to publish the image to docker hub only and discard use of the secret for the org name. Ensure org name is normalized for dockerhub.
This commit is contained in:
parent
e34a791b5b
commit
2444889155
3
.github/workflows/docker-meta.yml
vendored
3
.github/workflows/docker-meta.yml
vendored
@ -35,7 +35,8 @@ jobs:
|
||||
echo ghcr.io/${{ github.repository_owner }}/vagrant-libvirt >> ${GITHUB_ENV}
|
||||
if [[ -n "${{ secrets.DOCKERHUB_USERNAME }}" ]] && [[ ${{ github.event_name }} != pull_request* ]]
|
||||
then
|
||||
echo ${{ secrets.DOCKERHUB_ORGANIZATION }}/vagrant-libvirt >> ${GITHUB_ENV}
|
||||
ORG_NAME=$(echo ${{ github.repository_owner }} | tr -d '-')
|
||||
echo ${ORG_NAME}/vagrant-libvirt >> ${GITHUB_ENV}
|
||||
fi
|
||||
echo 'EOF' >> ${GITHUB_ENV}
|
||||
-
|
||||
|
Loading…
Reference in New Issue
Block a user