diff --git a/.gitea/workflows/docker-ci.yml b/.gitea/workflows/docker-ci.yml new file mode 100644 index 0000000..a19fe65 --- /dev/null +++ b/.gitea/workflows/docker-ci.yml @@ -0,0 +1,38 @@ +name: docker-ci + +on: + push: + branches: + - 'main' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: usbharu + password: ${{ secrets.PUBLIC_REPOSITORY_PACKAGE_WRITE_TOKEN }} + - name: metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: git.usbharu.dev/usbharu/warp-proxy + tags: | + type=raw,value=latest + type=sha,prefix=,suffix=,format=short + - name: build + uses: docker/build-push-action@v5 + with: + file: ./Dockerfile + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/docker-ci.yml b/.github/workflows/docker-ci.yml deleted file mode 100644 index 62c8434..0000000 --- a/.github/workflows/docker-ci.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: docker-ci - -on: - push: - branches: - - 'main' - -jobs: - docker: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - id: docker_build - uses: docker/build-push-action@v4 - with: - context: . - push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/cloudflare-warp-proxy:latest