+3
-1
@@ -22,10 +22,12 @@ runs:
|
|||||||
repo_host="${repo_url#https://}"
|
repo_host="${repo_url#https://}"
|
||||||
repo_host="${repo_host%%/*}"
|
repo_host="${repo_host%%/*}"
|
||||||
docker login --username acti-bot --password ${ACTI_BOT_TOKEN} ${repo_host}
|
docker login --username acti-bot --password ${ACTI_BOT_TOKEN} ${repo_host}
|
||||||
|
|
||||||
|
docker build -f ${{ inputs.containerfile }} -t img-${{ gitea.run_id }} .
|
||||||
while IFS= read -r tag; do
|
while IFS= read -r tag; do
|
||||||
[[ -z "$tag" ]] && continue
|
[[ -z "$tag" ]] && continue
|
||||||
|
|
||||||
image="${repo_host}/${{ gitea.repository }}/${{ inputs.name }}:$tag"
|
image="${repo_host}/${{ gitea.repository }}/${{ inputs.name }}:$tag"
|
||||||
docker build -f ${{ inputs.containerfile }} -t $image .
|
docker tag img-${{ gitea.run_id }} $image
|
||||||
docker push $image
|
docker push $image
|
||||||
done <<< "${{ inputs.tags }}"
|
done <<< "${{ inputs.tags }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user