Added gitea CI/CD configuration
Some checks failed
Create Docker Image / Build Docker Image (push) Failing after 3m9s
Some checks failed
Create Docker Image / Build Docker Image (push) Failing after 3m9s
This commit is contained in:
parent
67189cb36a
commit
41f7f0eb06
@ -56,11 +56,8 @@ jobs:
|
||||
run: |
|
||||
set -x
|
||||
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 ${{ 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}
|
||||
echo docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} -t ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}
|
||||
echo docker push ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}
|
||||
|
||||
# name: Set up Docker Buildx
|
||||
# uses: https://github.com/docker/setup-buildx-action@v3
|
||||
@ -70,10 +67,10 @@ jobs:
|
||||
# http = true
|
||||
# insecure = true
|
||||
|
||||
#- name: Build and push Docker image
|
||||
# uses: docker/build-push-action@v5
|
||||
# with:
|
||||
# context: .
|
||||
# file: ./Dockerfile
|
||||
# push: true
|
||||
# tags: "${{gitea.server}}/${{gitea.domain}}:latest"
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: "${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}"
|
||||
|
Loading…
Reference in New Issue
Block a user