Added gitea CI/CD configuration
Some checks failed
Create Docker Image / Build Docker Image (push) Failing after 12s
Some checks failed
Create Docker Image / Build Docker Image (push) Failing after 12s
This commit is contained in:
parent
035134f3b8
commit
2c25aaf56c
@ -48,6 +48,8 @@ jobs:
|
|||||||
echo "++ ls" && ls -al
|
echo "++ ls" && ls -al
|
||||||
echo "++ workspace" && ls ${{ gitea.workspace }}
|
echo "++ workspace" && ls ${{ gitea.workspace }}
|
||||||
echo "++ host is ${{ gitea.repository }}"
|
echo "++ host is ${{ gitea.repository }}"
|
||||||
|
echo "++ registry is ${{ steps.registry.outputs.registry }}"
|
||||||
|
echo "++ steps is ${{ steps }}"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
@ -55,7 +57,7 @@ jobs:
|
|||||||
if [ -f init ]; then chmod 500 init; fi
|
if [ -f init ]; then chmod 500 init; fi
|
||||||
#([ -z "$REFRESH" -a -f build-cache/${CI_COMMIT_REF_SLUG} ]) && docker load < build-cache/${CI_COMMIT_REF_SLUG} || true
|
#([ -z "$REFRESH" -a -f build-cache/${CI_COMMIT_REF_SLUG} ]) && docker load < build-cache/${CI_COMMIT_REF_SLUG} || true
|
||||||
#rm build-cache/* || true
|
#rm build-cache/* || true
|
||||||
docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} -t ${{steps.registry.outputs.registry}}/${{ GITHUB_REPOSITORY }}:${{ env.VERSION }}
|
docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} -t ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}
|
||||||
docker push ${{steps.registry.outputs.registry}}/${{ GITHUB_REPOSITORY }}:${{ env.VERSION }}
|
docker push ${{steps.registry.outputs.registry}}/${{ GITHUB_REPOSITORY }}:${{ env.VERSION }}
|
||||||
#docker save ${CI_REGISTRY_IMAGE}:${VERSIONARCH} > build-cache/${CI_COMMIT_REF_SLUG}
|
#docker save ${CI_REGISTRY_IMAGE}:${VERSIONARCH} > build-cache/${CI_COMMIT_REF_SLUG}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user