another test
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
Gitea Actions Demo / publish (push) Has been cancelled

This commit is contained in:
2025-07-28 19:42:46 +02:00
parent f4f6bcc1e8
commit bcb3de3a7a
2 changed files with 24 additions and 0 deletions

View File

@@ -17,3 +17,24 @@ jobs:
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
publish:
runs-on: ubuntu-latest
needs: build
if: gitea.ref == 'refs/heads/main'
steps:
- uses: https://github.com/actions/checkout@v4
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
with:
config-inline: |
[registry."<my-private-unsecure-git-repository-ip-address>:5000"]
http = true
insecure = true
- name: Build and push Docker image
uses: https://github.com/docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: "<my-private-unsecure-git-repository-ip-address>:5000/<my-docker-image>:${{gitea.sha}},<my-private-unsecure-git-repository-ip-address>:5000/<my-docker-image>:latest"

3
Dockerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM archlinux:latest