diff --git a/.github/workflows/docker-image.yaml b/.github/workflows/docker-image.yaml new file mode 100644 index 0000000..0466cab --- /dev/null +++ b/.github/workflows/docker-image.yaml @@ -0,0 +1,18 @@ +name: Build and Push + +permissions: + contents: read + packages: write + +on: + push: + branches: + - main + +jobs: + build: + uses: poketwo/workflows/.github/workflows/docker-image.yaml@main + with: + package-name: gateway-proxy + secrets: + GIT_AUTH_TOKEN: ${{ secrets.GIT_AUTH_TOKEN }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 608eed2..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Build Image - -permissions: - packages: write - -on: - push: - pull_request: - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: docker/setup-buildx-action@v2 - - - id: metadata - uses: docker/metadata-action@v4 - with: - images: ghcr.io/poketwo/gateway-proxy - - - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GHCR_PAT }} - - - uses: docker/build-push-action@v4 - with: - tags: ${{ steps.metadata.outputs.tags }} - labels: ${{ steps.metadata.outputs.tags }} - cache-from: type=gha - cache-to: type=gha,mode=max - push: true - secrets: | - GIT_AUTH_TOKEN=${{ secrets.GHCR_PAT }} -