File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments