chore(ci): Switch to reusable workflow from org repo for docker deploy

This commit is contained in:
Caleb Maclennan 2022-08-20 22:46:49 +03:00
parent 8c58f1bee0
commit 3069d5f2db
No known key found for this signature in database
GPG Key ID: B538286DE04ECFE5
2 changed files with 1 additions and 38 deletions

View File

@ -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 }}

View File

@ -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 }}