diff --git a/.gitea/workflows/ci-demo.yaml b/.gitea/workflows/ci-demo.yaml index 518bcb0..37fb54d 100644 --- a/.gitea/workflows/ci-demo.yaml +++ b/.gitea/workflows/ci-demo.yaml @@ -30,20 +30,29 @@ jobs: key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx - uses: https://github.com/docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub - uses: https://github.com/docker/login-action@v3 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push - uses: https://github.com/docker/build-push-action@v6 + uses: docker/build-push-action@v6 with: context: . + file: ./Dockerfile push: true - platforms: linux/amd64 + platforms: | + linux/amd64 tags: | ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:latest + - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file