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

This commit is contained in:
Deon George 2024-04-06 12:24:59 +11:00
parent 67189cb36a
commit 41f7f0eb06

View File

@ -56,11 +56,8 @@ jobs:
run: | run: |
set -x set -x
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 echo docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} -t ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}
#rm build-cache/* || true echo docker push ${{ steps.registry.outputs.registry }}/${{ env.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 save ${CI_REGISTRY_IMAGE}:${VERSIONARCH} > build-cache/${CI_COMMIT_REF_SLUG}
# name: Set up Docker Buildx # name: Set up Docker Buildx
# uses: https://github.com/docker/setup-buildx-action@v3 # uses: https://github.com/docker/setup-buildx-action@v3
@ -70,10 +67,10 @@ jobs:
# http = true # http = true
# insecure = true # insecure = true
#- name: Build and push Docker image - name: Build and push Docker image
# uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
# with: with:
# context: . context: .
# file: ./Dockerfile file: ./Dockerfile
# push: true push: true
# tags: "${{gitea.server}}/${{gitea.domain}}:latest" tags: "${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}"