From 3069d5f2db1b076c6faeeae02e58235500ccf627 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Sat, 20 Aug 2022 22:46:49 +0300 Subject: [PATCH] chore(ci): Switch to reusable workflow from org repo for docker deploy --- .github/workflows/deploy.yml | 2 +- .github/workflows/docker.yml | 37 ------------------------------------ 2 files changed, 1 insertion(+), 38 deletions(-) delete mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2c68a84..cfc705d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,7 +39,7 @@ jobs: github.repository == 'lunarmodules/luacheck' && ( github.ref_name == 'master' || startsWith(github.ref, 'refs/tags/') ) }} - uses: ./.github/workflows/docker.yml + uses: lunarmodules/.github/.github/workflows/docker_ghcr_deploy.yml@main with: username: ${{ github.actor }} tag: ${{ github.ref_name }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index 4159058..0000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Docker - -on: - workflow_call: - inputs: - tag: - required: true - type: string - username: - required: true - type: string - secrets: - token: - required: true - -jobs: - docker: - name: Build image and push to GHRC - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ inputs.username }} - password: ${{ secrets.token }} - - name: Build and push - uses: docker/build-push-action@v2 - with: - context: . - push: ${{ github.ref == 'refs/heads/master' }} - tags: | - ghcr.io/lunarmodules/luacheck:${{ inputs.tag }}