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

This commit is contained in:
Deon George 2024-04-06 19:36:42 +11:00
parent 0b61ce8a59
commit 6ddad82571

View File

@ -52,14 +52,14 @@ jobs:
echo "++ container ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}" 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"
echo "++ github token ${{ gitea.TOKEN }}" echo "++ github token ${{ gitea.TOKEN }}"
echo "++ runtime token ${{ actions.runtime.token }} or ${{ env.ACTIONS_RUNTIME_TOKEN }} or ${{ actions.runtime_token }}" echo "++ runtime token ${{ env.ACTIONS_RUNTIME_TOKEN }}"
- name: Build #- name: Build
run: | # run: |
set -x # set -x
if [ -f init ]; then chmod 500 init; fi # if [ -f init ]; then chmod 500 init; fi
docker build ${HTTP_PROXY:+--build-arg HTTP_PROXY=${HTTP_PROXY}} -t ${{ 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 }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }} # docker push ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}
# 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
@ -71,6 +71,8 @@ jobs:
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
env:
GITHUB_AUTH_TOKEN: ${{ env.ACTIONS_RUNTIME_TOKEN }}
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile