diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index c537cc6..80b19a3 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -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.":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: ":5000/:${{gitea.sha}},:5000/:latest" diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2e7292c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM archlinux:latest + +