Added gitea CI/CD configuration
Some checks failed
Create Docker Image / Build Docker Image (push) Failing after 13s

This commit is contained in:
Deon George 2024-04-06 11:15:01 +11:00
parent 7e73e13782
commit 035134f3b8

View File

@ -34,6 +34,13 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
- name: Prepare Registry FQDN
id: registry
run: |
registry=${{ github.server_url }}
registry=${registry##http*://}
echo "registry=${registry}" >> "$GITHUB_OUTPUT"
- name: Environment part 2
run: |
echo "++ Environment" && env|sort
@ -48,9 +55,9 @@ jobs:
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
#rm build-cache/* || true
docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} -t ${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}
docker push ${CI_REGISTRY_IMAGE}:${VERSIONARCH}
docker save ${CI_REGISTRY_IMAGE}:${VERSIONARCH} > build-cache/${CI_COMMIT_REF_SLUG}
docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} -t ${{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}
# name: Set up Docker Buildx
# uses: https://github.com/docker/setup-buildx-action@v3