-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: enables semantic release on console
- Loading branch information
Showing
5 changed files
with
65 additions
and
48 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 |
---|---|---|
|
@@ -9,52 +9,52 @@ name: Semantic-Release CI | |
|
||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [main] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | ||
with: | ||
egress-policy: audit | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | ||
with: | ||
egress-policy: audit | ||
|
||
- name: Checkout Console | ||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
with: | ||
- name: Checkout Console | ||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
with: | ||
persist-credentials: false | ||
- name: Check out Sample Web UI | ||
uses: actions/checkout@master | ||
with: | ||
- name: Check out Sample Web UI | ||
uses: actions/checkout@master | ||
with: | ||
repository: open-amt-cloud-toolkit/sample-web-ui | ||
ref: enterprise #TODO: pull latest tagged version | ||
path: ./ui | ||
- run: npm ci | ||
- run: npm run build-enterprise | ||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | ||
with: | ||
node-version: "20.x" | ||
- name: Docker Login | ||
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 | ||
with: | ||
registry: vprodemo.azurecr.io | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
logout: true | ||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@cb425203a562475bca039ba4dbf90c7f9ac790f4 # v4.1.0 | ||
with: | ||
semantic_version: 19.0.5 # It is recommended to specify a version range | ||
# for semantic-release when using | ||
# semantic-release-action lower than @v3 | ||
extra_plugins: | | ||
@semantic-release/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ROSIE_TOKEN }} | ||
|
||
path: ./temp | ||
- run: npm ci | ||
working-directory: ./temp | ||
- run: npm run build-enterprise | ||
working-directory: ./temp | ||
- name: move files | ||
run: mv ./temp/ui/* ./internal/controller/http/v1/ui | ||
- name: Docker Login | ||
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 | ||
with: | ||
registry: vprodemo.azurecr.io | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
logout: true | ||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@cb425203a562475bca039ba4dbf90c7f9ac790f4 # v4.1.0 | ||
with: | ||
semantic_version: | ||
19.0.5 # It is recommended to specify a version range | ||
# for semantic-release when using | ||
# semantic-release-action lower than @v3 | ||
extra_plugins: | | ||
@semantic-release/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ROSIE_TOKEN }} | ||
|
||
# - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
# if: ${{ steps.version.outputs.next != 'none' }} | ||
|
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
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
Empty file.