|
@@ -14,13 +14,18 @@ jobs:
|
|
steps:
|
|
steps:
|
|
- name: checkout
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ - name: GCP Auth
|
|
|
|
+ uses: google-github-actions/auth@v2
|
|
|
|
+ with:
|
|
|
|
+ credentials_json: ${{ secrets.DOCKER_REGISTRY_WRITER}}
|
|
|
|
+
|
|
- name: Set up GCloud CLI
|
|
- name: Set up GCloud CLI
|
|
uses: google-github-actions/setup-gcloud@v2
|
|
uses: google-github-actions/setup-gcloud@v2
|
|
|
|
|
|
- name: Docker Auth
|
|
- name: Docker Auth
|
|
run: gcloud auth configure-docker us-central1-docker.pkg.dev --quiet
|
|
run: gcloud auth configure-docker us-central1-docker.pkg.dev --quiet
|
|
-
|
|
|
|
|
|
+
|
|
# - name: Setup Miniconda
|
|
# - name: Setup Miniconda
|
|
# uses: conda-incubator/setup-miniconda@v3
|
|
# uses: conda-incubator/setup-miniconda@v3
|
|
# with:
|
|
# with:
|
|
@@ -62,12 +67,7 @@ jobs:
|
|
- name: Build
|
|
- name: Build
|
|
run: |
|
|
run: |
|
|
docker build -t us-central1-docker.pkg.dev/zerotier-421eb9/docker-images/ztcentral-controller:${{ env.COMMIT_SHORT_SHA }}-${{ steps.branch.outputs.branch_name }}-${{ runner.arch }} -f ext/central-controller-docker/Dockerfile.new .
|
|
docker build -t us-central1-docker.pkg.dev/zerotier-421eb9/docker-images/ztcentral-controller:${{ env.COMMIT_SHORT_SHA }}-${{ steps.branch.outputs.branch_name }}-${{ runner.arch }} -f ext/central-controller-docker/Dockerfile.new .
|
|
- - name: GCP Auth
|
|
|
|
- uses: google-github-actions/auth@v2
|
|
|
|
- with:
|
|
|
|
- credentials_json: ${{ secrets.DOCKER_REGISTRY_WRITER}}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
- name: Build and push Docker Image
|
|
- name: Build and push Docker Image
|
|
run: |
|
|
run: |
|