From ede14fd99b74a24cb18a94215c53479ffdbf2fbb Mon Sep 17 00:00:00 2001 From: Martin <1403951401@qq.com> Date: Mon, 13 Jan 2025 15:51:37 +0800 Subject: [PATCH] =?UTF-8?q?[+]=20=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/demo.yaml | 29 +++++++++++++++++++++++++++++ Dockerfile | 3 +++ 2 files changed, 32 insertions(+) create mode 100644 .gitea/workflows/demo.yaml create mode 100644 Dockerfile diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml new file mode 100644 index 0000000..14cc5f6 --- /dev/null +++ b/.gitea/workflows/demo.yaml @@ -0,0 +1,29 @@ +name: Build Docker Image +on: + push: + branches: + - main + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + registry: ${{ secrets.DOCKER_HUB }} + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + platforms: linux/amd64 + push: true + tags: | + ${{ secrets.DOCKER_TAG }}:latest + ${{ secrets.DOCKER_TAG }}:${{ github.sha }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..27a51f9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM scratch + +COPY *.sh /scripts \ No newline at end of file