-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(docker): publish on public registry (#56)
- Loading branch information
Showing
3 changed files
with
69 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: publish-docker | ||
run-name: Publish Docker Images | ||
on: | ||
workflow_call: | ||
inputs: | ||
tag: | ||
type: string | ||
required: false | ||
default: '' | ||
permissions: | ||
packages: write | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: npm | ||
cache-dependency-path: package-lock.json | ||
node-version: 20 | ||
|
||
- name: Installing Dependencies | ||
run: npm install | ||
|
||
- name: Lint | ||
run: npm run lint -ws | ||
|
||
- name: Build | ||
run: npm run build -ws | ||
|
||
- name: Publish Image | ||
uses: littlehorse-enterprises/publish-image@v1 | ||
with: | ||
image-name: lh-sso-workflow-bridge-ui | ||
dockerfile: Dockerfile | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
tags: | | ||
type=semver,pattern={{version}} | ||
type=ref,event=branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters