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

This commit is contained in:
Deon George 2024-04-06 12:46:29 +11:00
parent 41f7f0eb06
commit 0b61ce8a59

View File

@ -51,13 +51,15 @@ jobs:
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 "++ github token ${{ gitea.TOKEN }}"
echo "++ runtime token ${{ actions.runtime.token }} or ${{ env.ACTIONS_RUNTIME_TOKEN }} or ${{ actions.runtime_token }}"
- name: Build
run: |
set -x
if [ -f init ]; then chmod 500 init; fi
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 }}
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 }}
# name: Set up Docker Buildx
# uses: https://github.com/docker/setup-buildx-action@v3