chore(ci): Switch to reusable workflow from org repo for docker deploy
This commit is contained in:
parent
8c58f1bee0
commit
3069d5f2db
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@ -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 }}
|
||||
|
37
.github/workflows/docker.yml
vendored
37
.github/workflows/docker.yml
vendored
@ -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 }}
|
Loading…
x
Reference in New Issue
Block a user