mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Attempt to passing multiple lines via env context (#1661)
This commit is contained in:
parent
6109957d50
commit
e34a791b5b
12
.github/workflows/docker-meta.yml
vendored
12
.github/workflows/docker-meta.yml
vendored
@ -29,20 +29,22 @@ jobs:
|
||||
name: Generate docker image names for publishing
|
||||
id: docker_image_names
|
||||
run: |
|
||||
IMAGE_NAMES="ghcr.io/${{ github.repository_owner }}/vagrant-libvirt"
|
||||
# suggestion from https://trstringer.com/github-actions-multiline-strings/ to handle
|
||||
# passing multi-line strings to subsequent action
|
||||
echo 'IMAGE_NAMES<<EOF' >> ${GITHUB_ENV}
|
||||
echo ghcr.io/${{ github.repository_owner }}/vagrant-libvirt >> ${GITHUB_ENV}
|
||||
if [[ -n "${{ secrets.DOCKERHUB_USERNAME }}" ]] && [[ ${{ github.event_name }} != pull_request* ]]
|
||||
then
|
||||
IMAGE_NAMES="${IMAGE_NAMES}\n${{ secrets.DOCKERHUB_ORGANIZATION }}/vagrant-libvirt"
|
||||
echo ${{ secrets.DOCKERHUB_ORGANIZATION }}/vagrant-libvirt >> ${GITHUB_ENV}
|
||||
fi
|
||||
|
||||
echo "image_names=${IMAGE_NAMES}" >> ${GITHUB_OUTPUT}
|
||||
echo 'EOF' >> ${GITHUB_ENV}
|
||||
-
|
||||
name: Setup publish tags and versions for image
|
||||
id: metadata
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: |
|
||||
${{ steps.docker_image_names.outputs.image_names }}
|
||||
${{ env.IMAGE_NAMES }}
|
||||
tags: |
|
||||
# nightly
|
||||
type=schedule
|
||||
|
Loading…
Reference in New Issue
Block a user