mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -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:
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}
|
echo ghcr.io/${{ github.repository_owner }}/vagrant-libvirt >> ${GITHUB_ENV}
|
||||||
if [[ -n "${{ secrets.DOCKERHUB_USERNAME }}" ]] && [[ ${{ github.event_name }} != pull_request* ]]
|
if [[ -n "${{ secrets.DOCKERHUB_USERNAME }}" ]] && [[ ${{ github.event_name }} != pull_request* ]]
|
||||||
then
|
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
|
fi
|
||||||
echo 'EOF' >> ${GITHUB_ENV}
|
echo 'EOF' >> ${GITHUB_ENV}
|
||||||
-
|
-
|
||||||
|
|||||||
Reference in New Issue
Block a user