Skip to content

Commit

Permalink
Update ui-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eclipse-xpanse-bot committed Oct 3, 2023
1 parent 6514704 commit fc86b11
Showing 1 changed file with 0 additions and 56 deletions.
56 changes: 0 additions & 56 deletions .github/workflows/ui-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fc86b11

Please sign in to comment.