#7: Docker build command #10
+7
-3
@@ -14,10 +14,14 @@ runs:
|
||||
steps:
|
||||
- shell: bash
|
||||
run: |
|
||||
docker login --username acti-bot --password ${ACTI_BOT_TOKEN} ${{ gitea.server_url }}
|
||||
repo_url="${{ gitea.repositoryUrl }}"
|
||||
repo_host="${repo_url#https://}"
|
||||
repo_host="${repo_host%%/*}"
|
||||
docker login --username acti-bot --password ${ACTI_BOT_TOKEN} ${repo_host}
|
||||
while IFS= read -r tag; do
|
||||
[[ -z "$tag" ]] && continue
|
||||
|
||||
docker build -f Containerfile -t "${{ gitea.server_url }}/${{ gitea.repository }}/${{ inputs.name }}:$tag"
|
||||
docker push "${{ gitea.server_url }}/${{ gitea.repository }}/${{ inputs.name }}:$tag"
|
||||
image="${repo_host}/${{ gitea.repository }}/${{ inputs.name }}:$tag"
|
||||
docker build -f Containerfile -t $image
|
||||
docker push $image
|
||||
done <<< "${{ inputs.tags }}"
|
||||
|
||||
Reference in New Issue
Block a user