-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6514704
commit fc86b11
Showing
1 changed file
with
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,59 +39,3 @@ jobs: | |
run: | | ||
git config user.name ${{ env.BOT_USER_NAME }} | ||
git config user.email ${{ env.BOT_EMAIL_ID }} | ||
- name: Run install dependencies | ||
run: npm install | ||
|
||
- name: Run EsLint | ||
working-directory: ./ | ||
run: npx eslint . --ext .js,.jsx,.ts,.tsx --config package.json --max-warnings=0 | ||
|
||
- name: Check Prettier Format | ||
working-directory: ./ | ||
run: npx prettier --config .prettierrc --check . | ||
|
||
- name: Run knip | ||
working-directory: ./ | ||
run: npx knip | ||
|
||
- name: Run unit tests | ||
working-directory: ./ | ||
run: npm run test | ||
|
||
- name: Release application | ||
working-directory: ./ | ||
run: npx release-it ${{github.event.inputs.ReleaseType}} --ci | ||
|
||
- name: Set current version env variable | ||
run: | | ||
echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to Github Packages | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ env.BOT_USER_NAME }} | ||
password: ${{ secrets.BOT_GITHUB_DOCKER_TOKEN }} | ||
|
||
- name: Extract Docker metadata | ||
id: meta | ||
uses: docker/[email protected] | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
- name: Build Docker Image and Push | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: docker/Dockerfile | ||
push: true | ||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.CURRENT_VERSION }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
provenance: false |