1- name : Pipeline
1+ name : Latest Stable Pipeline
22
33on :
44 push :
1313jobs :
1414 debian_ubuntu :
1515 name : Build Debian and Ubuntu based OS images
16+ runs-on : self-hosted
17+
1618 strategy :
1719 matrix :
1820 os : [debian, ubuntu]
19- runs-on : self-hosted
21+
2022 steps :
2123 - name : Checkout
2224 uses : actions/checkout@v3
25+
26+ - uses : google-github-actions/auth@v1
27+ with :
28+ credentials_json : ' ${{ secrets.GCP_SA_KEY }}'
29+
30+ - name : Set up Cloud SDK
31+ uses : google-github-actions/setup-gcloud@v0
32+
2333 - name : Set up Go 1.20
2434 uses : actions/setup-go@v3
2535 with :
2636 go-version : ' 1.20.x'
37+
2738 - name : Lint
2839 uses : golangci/golangci-lint-action@v3
2940 with :
3041 args : --build-tags integration -p bugs -p unused --timeout=3m
42+
3143 - name : build install
3244 run : make
45+
3346 - name : Prepare build environment
3447 shell : bash
3548 run : ./prepare.sh ${{ matrix.os }}
49+
3650 - name : Build docker image for workers and export tarball
3751 run : |
3852 DOCKER_MAKE_REGISTRY_LOGIN_USER="metalstack+ci" \
4559 --summary \
4660 --no-lint \
4761 --no-push
62+
4863 - name : Build docker image for firewalls and export tarball
4964 run : |
5065 DOCKER_MAKE_REGISTRY_LOGIN_USER="metalstack+ci" \
@@ -59,28 +74,37 @@ jobs:
5974 --no-lint \
6075 --no-push
6176 if : ${{ matrix.os == 'ubuntu' }}
62- - uses : google-github-actions/setup-gcloud@v0
63- with :
64- service_account_email : ${{ secrets.GCP_SA_EMAIL }}
65- service_account_key : ${{ secrets.GCP_SA_KEY }}
77+
6678 - name : Upload image tarballs to GCS
6779 run : cd images && gsutil -m -h "Cache-Control:no-store" cp -r . gs://$GCS_BUCKET/metal-os
6880
6981 centos :
7082 name : Build Centos based OS image
7183 runs-on : self-hosted
84+
7285 steps :
7386 - name : Checkout
7487 uses : actions/checkout@v3
88+
89+ - uses : google-github-actions/auth@v1
90+ with :
91+ credentials_json : ' ${{ secrets.GCP_SA_KEY }}'
92+
93+ - name : Set up Cloud SDK
94+ uses : google-github-actions/setup-gcloud@v0
95+
7596 - name : Set up Go 1.20
7697 uses : actions/setup-go@v3
7798 with :
7899 go-version : ' 1.20.x'
100+
79101 - name : build install
80102 run : make
103+
81104 - name : Prepare build environment
82105 shell : bash
83106 run : ./prepare.sh centos
107+
84108 - name : Build docker image for centos based workers and export tarball
85109 run : |
86110 DOCKER_MAKE_REGISTRY_LOGIN_USER="metalstack+ci" \
93117 --summary \
94118 --no-lint \
95119 --no-push
96- - uses : google-github-actions/setup-gcloud@v0
97- with :
98- service_account_email : ${{ secrets.GCP_SA_EMAIL }}
99- service_account_key : ${{ secrets.GCP_SA_KEY }}
120+
100121 - name : Upload image tarballs to GCS
101122 run : cd images && gsutil -m -h "Cache-Control:no-store" cp -r . gs://$GCS_BUCKET/metal-os
0 commit comments