diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index abed69c..193a7eb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,17 +1,30 @@ -name: Test and publish to DockerHub +name: ci + on: workflow_dispatch: # push: -# branches: [ master ] +# branches: +# - 'main' + jobs: -# test: -# [...] - build: + docker: runs-on: ubuntu-latest steps: - - uses: docker/build-push-action@v1 - with: - username: sleeplife - password: ${{ secrets.DOCKER_PASSWORD }} - repository: sleeplife/v2ray - tags: latest + - + name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - + name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v2 + with: + push: true + tags: sleeplife/v2ray:latest