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

This commit is contained in:
Deon George 2024-04-06 11:15:01 +11:00
parent 7e73e13782
commit 035134f3b8
1 changed files with 10 additions and 3 deletions

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