Merge pull request #177 from open-amt-cloud-toolkit/readme #43
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
#********************************************************************* | |
# Copyright (c) Intel Corporation 2023 | |
# SPDX-License-Identifier: Apache-2.0 | |
#*********************************************************************/ | |
# This workflow will release new versions when required using semantic-release | |
name: Semantic-Release CI | |
on: | |
push: | |
branches: [main, alpha] | |
permissions: | |
contents: read | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | |
with: | |
egress-policy: audit | |
- name: Checkout Console | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
with: | |
persist-credentials: false | |
- name: Check out Sample Web UI | |
uses: actions/checkout@61b9e3751b92087fd0b06925ba6dd6314e06f089 # master | |
with: | |
repository: open-amt-cloud-toolkit/sample-web-ui | |
ref: enterprise #TODO: pull latest tagged version | |
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@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.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/exec@6.0.3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.ROSIE_TOKEN }} | |