Skip to content

Commit 1a52869

Browse files
authored
Rename workflow from 'Smoke test' to 'Some imp test'
1 parent 7e1df86 commit 1a52869

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/somedotest.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Some imp test
2+
3+
on:
4+
workflow_dispatch:
5+
jobs:
6+
some-test:
7+
name: Smoke test
8+
runs-on: ubuntu-latest
9+
steps:
10+
11+
- name: Checkout
12+
id: checkout
13+
uses: actions/checkout@v3
14+
15+
- name: Build and push dev tags
16+
id: build_and_push
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
REGISTRY: ${{ secrets.REGISTRY }}
20+
REGISTRY_BASE_PATH: ${{ secrets.REGISTRY_BASE_PATH }}
21+
STUB_REGISTRY: ${{ secrets.STUB_REGISTRY }}
22+
STUB_REGISTRY_BASE_PATH: ${{ secrets.STUB_REGISTRY_BASE_PATH }}
23+
SECONDARY_REGISTRY_BASE_PATH: ${{ secrets.SECONDARY_REGISTRY_BASE_PATH }}
24+
TOKEN_NAME: ${{ secrets.TOKEN_NAME }}
25+
PASSWORD: ${{ secrets.PASSWORD }}
26+
run: |
27+
set -e
28+
29+
# ACR login
30+
ACR_REGISTRY_NAME=$(echo "$REGISTRY" | grep -oP '(.+)(?=\.azurecr\.io)')
31+
#az acr login --name $ACR_REGISTRY_NAME --username $TOKEN_NAME --password $PASSWORD
32+
33+
# Build and push dev images
34+
yarn install
35+
npm install -g @devcontainers/cli
36+
GIT_BRANCH=$(echo "${{ github.ref }}" | grep -oP 'refs/(heads|tags)/\K(.+)')
37+
if [ "$GIT_BRANCH" == "" ]; then
38+
GIT_BRANCH=main
39+
fi
40+
build/vscdc push --page 1 \
41+
--pageTotal 1 \
42+
--release $GIT_BRANCH \
43+
--github-repo ${{ github.repository }} \
44+
--registry "$REGISTRY" \
45+
--registry-path "$REGISTRY_BASE_PATH" \
46+
--stub-registry "$STUB_REGISTRY" \
47+
--stub-registry-path "$STUB_REGISTRY_BASE_PATH" \
48+
--secondary-registry-path "$SECONDARY_REGISTRY_BASE_PATH"

0 commit comments

Comments
 (0)