Skip to content

Commit 5b2208e

Browse files
test
1 parent 4c36d08 commit 5b2208e

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

.github/workflows/push.yml

+34-34
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
build-and-push:
1010
name: Build and push images
11-
if: ${{ github.event.base_ref == 'refs/heads/main' }}
11+
# if: ${{ github.event.base_ref == 'refs/heads/main' }}
1212
strategy:
1313
matrix:
1414
page: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
@@ -29,47 +29,47 @@ jobs:
2929
id: checkout
3030
uses: actions/checkout@v1
3131

32-
- name: Get tag name
33-
id: get_tag_name
34-
run: echo "::set-output name=tag::$(echo "${{ github.ref }}" | grep -oP 'refs/tags/\K(.+)')"
32+
# - name: Get tag name
33+
# id: get_tag_name
34+
# run: echo "::set-output name=tag::$(echo "${{ github.ref }}" | grep -oP 'refs/tags/\K(.+)')"
3535

36-
- name: Azure CLI login
37-
id: az_login
38-
uses: azure/login@v1
39-
with:
40-
creds: ${{ secrets.AZ_ACR_CREDS }}
36+
# - name: Azure CLI login
37+
# id: az_login
38+
# uses: azure/login@v1
39+
# with:
40+
# creds: ${{ secrets.AZ_ACR_CREDS }}
4141

42-
- name: Build and push
43-
id: build_and_push
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.PAT }}
46-
REGISTRY: ${{ secrets.REGISTRY }}
47-
REGISTRY_BASE_PATH: ${{ secrets.REGISTRY_BASE_PATH }}
48-
STUB_REGISTRY: ${{ secrets.STUB_REGISTRY }}
49-
STUB_REGISTRY_BASE_PATH: ${{ secrets.STUB_REGISTRY_BASE_PATH }}
50-
run: |
51-
set -e
42+
# - name: Build and push
43+
# id: build_and_push
44+
# env:
45+
# GITHUB_TOKEN: ${{ secrets.PAT }}
46+
# REGISTRY: ${{ secrets.REGISTRY }}
47+
# REGISTRY_BASE_PATH: ${{ secrets.REGISTRY_BASE_PATH }}
48+
# STUB_REGISTRY: ${{ secrets.STUB_REGISTRY }}
49+
# STUB_REGISTRY_BASE_PATH: ${{ secrets.STUB_REGISTRY_BASE_PATH }}
50+
# run: |
51+
# set -e
5252

53-
# ACR login
54-
ACR_REGISTRY_NAME=$(echo "$REGISTRY" | grep -oP '(.+)(?=\.azurecr\.io)')
55-
az acr login --name $ACR_REGISTRY_NAME
53+
# # ACR login
54+
# ACR_REGISTRY_NAME=$(echo "$REGISTRY" | grep -oP '(.+)(?=\.azurecr\.io)')
55+
# az acr login --name $ACR_REGISTRY_NAME
5656

57-
# Build and push images
58-
yarn install
59-
npm install -g @devcontainers/[email protected]
60-
build/vscdc push --page ${{ matrix.page }} \
61-
--pageTotal ${{ matrix.page-total }} \
62-
--release ${{ steps.get_tag_name.outputs.tag }} \
63-
--github-repo ${{ github.repository }} \
64-
--registry "$REGISTRY" \
65-
--registry-path "$REGISTRY_BASE_PATH" \
66-
--stub-registry "$STUB_REGISTRY" \
67-
--stub-registry-path "$STUB_REGISTRY_BASE_PATH"
57+
# # Build and push images
58+
# yarn install
59+
# npm install -g @devcontainers/[email protected]
60+
# build/vscdc push --page ${{ matrix.page }} \
61+
# --pageTotal ${{ matrix.page-total }} \
62+
# --release ${{ steps.get_tag_name.outputs.tag }} \
63+
# --github-repo ${{ github.repository }} \
64+
# --registry "$REGISTRY" \
65+
# --registry-path "$REGISTRY_BASE_PATH" \
66+
# --stub-registry "$STUB_REGISTRY" \
67+
# --stub-registry-path "$STUB_REGISTRY_BASE_PATH"
6868

6969
image-info:
7070
name: Trigger info extraction
7171
needs: [build-and-push]
72-
uses: devcontainers/images/.github/workflows/version-history.yml@main
72+
uses: devcontainers/images/.github/workflows/version-history.yml@test-version-1
7373
with:
7474
release: "${{ github.ref }}"
7575
cg: "false"

.github/workflows/version-history.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ on:
2727
jobs:
2828
image_info:
2929
name: Update version history
30-
if: ${{ github.ref == 'refs/heads/main' }}
30+
if: ${{ github.ref == 'refs/heads/main' }} || ${{ github.event.base_ref == 'refs/heads/test-version-1' }}
3131
runs-on: ubuntu-latest
3232
permissions:
3333
contents: write

0 commit comments

Comments
 (0)