File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 run : |
4949 printf "TELEGRAM_ID: \"$TELEGRAM_ID\"\nADMIN_ID: \"$ADMIN_ID\"\nGCLOUD_PROJECT_ID: \"$GCLOUD_PROJECT_ID\"\n" >> secrets.yaml
5050 cat secrets.yaml
51- docker build -f Dockerfile -t ${{ secrets.GCLOUD_REGION }}-docker.pkg.dev/$GCLOUD_PROJECT_ID/$ARTIFACT_ID/root:latest .
51+ docker build --build-arg GCLOUD_PROJECT_ID=$GCLOUD_PROJECT_ID - f Dockerfile -t ${{ secrets.GCLOUD_REGION }}-docker.pkg.dev/$GCLOUD_PROJECT_ID/$ARTIFACT_ID/root:latest .
5252 docker push ${{ secrets.GCLOUD_REGION }}-docker.pkg.dev/$GCLOUD_PROJECT_ID/$ARTIFACT_ID/root:latest
5353
5454 - name : Deployment
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ RUN apk --no-cache add ca-certificates
1414FROM scratch as runner
1515# FROM ubuntu:latest as runner
1616
17+ ARG GCLOUD_PROJECT_ID
18+ ENV GCLOUD_PROJECT_ID=$GCLOUD_PROJECT_ID
19+
1720COPY --from=builder /go/src/app/secrets.yaml /go/bin/secrets.yaml
1821COPY --from=builder /go/src/app/resource/* /go/bin/
1922COPY --from=builder /go/bin/main /go/bin/main
You can’t perform that action at this time.
0 commit comments