diff --git a/.gitea/workflows/docker-publish.yml b/.gitea/workflows/docker-publish.yml index 2512b5f..de565b8 100644 --- a/.gitea/workflows/docker-publish.yml +++ b/.gitea/workflows/docker-publish.yml @@ -2,10 +2,10 @@ name: Docker Build and Publish on: workflow_dispatch: - push: - branches: [ "main" ] - paths-ignore: - - '**/README.md' +# push: +# branches: [ "main" ] +# paths-ignore: +# - '**/README.md' jobs: docker-build-and-publish: diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..3160fea --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,32 @@ +name: Docker Build and Publish + +on: + workflow_dispatch: + push: + + +jobs: + docker-build-and-publish: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: install buildx + id: buildx + uses: crazy-max/ghaction-docker-buildx@v1 + with: + version: latest + + - name: build the image + run: | + docker buildx build \ + --tag ${{ vars.DOCKERHUB_REPO }}:2.10.0 \ + --tag ${{ vars.DOCKERHUB_REPO }}:latest \ + --platform linux/amd64,linux/arm64 .