From b25ed62fe257262c7371d9388bf6dd9be6e08bb5 Mon Sep 17 00:00:00 2001 From: Oliver Ni Date: Sun, 14 Jul 2024 17:11:29 -0400 Subject: [PATCH] Update ci --- .github/workflows/docker-image.yaml | 18 +++++++++++++++ .github/workflows/publish.yml | 36 ----------------------------- 2 files changed, 18 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/docker-image.yaml delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/docker-image.yaml b/.github/workflows/docker-image.yaml new file mode 100644 index 0000000..704ec48 --- /dev/null +++ b/.github/workflows/docker-image.yaml @@ -0,0 +1,18 @@ +name: Build and Push + +permissions: + 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 f87dd7c..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Build and Push - -on: - push: - branches: - - main - -permissions: - contents: read - packages: write - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: docker/setup-buildx-action@v3 - - - id: metadata - uses: docker/metadata-action@v5 - with: - images: ghcr.io/${{ github.repository }} - flavor: latest=true - - - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - uses: docker/build-push-action@v6 - with: - tags: ${{ steps.metadata.outputs.tags }} - labels: ${{ steps.metadata.outputs.tags }} - cache-from: type=gha - cache-to: type=gha,mode=max - push: true