Added gitea CI/CD configuration
All checks were successful
Create Docker Image / Build Docker Image (push) Successful in 10s
All checks were successful
Create Docker Image / Build Docker Image (push) Successful in 10s
This commit is contained in:
parent
8ef29c698f
commit
67189cb36a
@ -50,7 +50,7 @@ jobs:
|
||||
echo "++ host is ${{ gitea.repository }}"
|
||||
echo "++ registry is ${{ steps.registry.outputs.registry }}"
|
||||
echo "++ container ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}"
|
||||
echo "++ gitea server/domain ${{gitea.server}}/${{gitea.domain}}:latest"
|
||||
echo "++ gitea server/domain ${{ gitea.server }}/${{ gitea.domain }}:latest"
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
@ -59,7 +59,7 @@ jobs:
|
||||
#([ -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 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
|
||||
@ -70,10 +70,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: "${{gitea.server}}/${{gitea.domain}}:latest"
|
||||
|
Loading…
Reference in New Issue
Block a user