Skip to content

Commit 3c74f23

Browse files
committed
update build all
1 parent 5f9da7c commit 3c74f23

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build-all.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ jobs:
5656
- name: Install Package
5757
if: steps.all.outputs.services != ''
5858
run: |
59-
DEBIAN_FRONTEND=noninteractive apt install -y python3 python-is-python3 pip git unzip docker-cli ca-certificates curl apt-transport-https lsb-release gnupg parallel
59+
DEBIAN_FRONTEND=noninteractive apt install -y python3 python-is-python3 pip git unzip ca-certificates curl apt-transport-https lsb-release gnupg parallel
6060
curl -sL https://aka.ms/InstallAzureCLIDeb | bash
61+
curl -fsSL https://get.docker.com | sh
6162
6263
- name: Install python libs
6364
if: steps.all.outputs.services != ''
@@ -78,6 +79,9 @@ jobs:
7879
mv $GITHUB_WORKSPACE/config/auth-configuration /tmp/
7980
ls -l /tmp/auth-configuration
8081
82+
- name: Log in to GHCR
83+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
84+
8185
- name: Build Images of Services
8286
if: steps.all.outputs.services != ''
8387
run: |
@@ -86,7 +90,7 @@ jobs:
8690
echo "--------------------------------"
8791
failed_services=""
8892
for service in $all_services; do
89-
if [[ "$service" =~ alert-manager ]]; then
93+
if echo "$service" | grep -q "alert-manager"; then
9094
echo "alert-manager is in the changed services"
9195
# Build specific images in alert-manager
9296
echo "Building specific alert-manager images"

0 commit comments

Comments
 (0)