mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-23 07:19:50 -04:00
Add a manual production deployment to storage bucket
This commit is contained in:
parent
3cd46dc3a2
commit
7091354419
@ -34,3 +34,14 @@ deploy-staging:
|
|||||||
- if: '$CI_COMMIT_BRANCH == "main"'
|
- if: '$CI_COMMIT_BRANCH == "main"'
|
||||||
when: on_success
|
when: on_success
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
|
|
||||||
|
deploy-prod:
|
||||||
|
stage: prod
|
||||||
|
image: google/cloud-sdk
|
||||||
|
script:
|
||||||
|
- cd ./src
|
||||||
|
- make deploy-prod
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_BRANCH == "main"'
|
||||||
|
when: manual
|
||||||
|
allow_failure: false
|
||||||
|
@ -19,4 +19,4 @@ deploy-staging: authorize-service-account
|
|||||||
gsutil -m rsync -d -r ${output} gs://staging.dynamicbible.com
|
gsutil -m rsync -d -r ${output} gs://staging.dynamicbible.com
|
||||||
|
|
||||||
update-bucket-configs: gcloud/buckets.yaml
|
update-bucket-configs: gcloud/buckets.yaml
|
||||||
gcloud deployment-manager deployments update dynamicbible-buckets --config gcloud/buckets.yaml
|
gcloud deployment-manager deployments update --format=json dynamicbible-buckets --config gcloud/buckets.yaml
|
||||||
|
@ -1,24 +1,26 @@
|
|||||||
---
|
---
|
||||||
resources:
|
resources:
|
||||||
#- name: dynamicbible.com
|
- name: dynamicbible.com
|
||||||
# type: storage.v1.bucket
|
type: storage.v1.bucket
|
||||||
# properties:
|
properties:
|
||||||
# bucket: dynamicbible.com
|
bucket: dynamicbible.com
|
||||||
# project: "dynamicbible-7c6cf"
|
project: "dynamicbible-7c6cf"
|
||||||
# location: "us-east1"
|
location: "us-east1"
|
||||||
# website:
|
website:
|
||||||
# notFoundPage: 404.html
|
notFoundPage: 404.html
|
||||||
# mainPageSuffix: index.html
|
mainPageSuffix: index.html
|
||||||
# acl:
|
acl:
|
||||||
# - entity: "project-owners-dynamicbible-7c6cf"
|
- entity: "project-owners-dynamicbible-7c6cf"
|
||||||
# role: OWNER
|
role: OWNER
|
||||||
# - entity: "project-editors-dynamicbible-7c6cf"
|
- entity: "project-editors-dynamicbible-7c6cf"
|
||||||
# role: WRITER
|
role: WRITER
|
||||||
# - entity: "project-viewers-dynamicbible-7c6cf"
|
- entity: "project-viewers-dynamicbible-7c6cf"
|
||||||
# role: READER
|
role: READER
|
||||||
# defaultObjectAcl:
|
- entity: "user-$(ref.gitlab-service-account.email)"
|
||||||
# - entity: allUsers
|
role: WRITER
|
||||||
# role: READER
|
defaultObjectAcl:
|
||||||
|
- entity: allUsers
|
||||||
|
role: READER
|
||||||
- name: staging.dynamicbible.com
|
- name: staging.dynamicbible.com
|
||||||
type: storage.v1.bucket
|
type: storage.v1.bucket
|
||||||
properties:
|
properties:
|
||||||
@ -51,10 +53,10 @@ resources:
|
|||||||
parent: $(ref.gitlab-service-account.name)
|
parent: $(ref.gitlab-service-account.name)
|
||||||
name: gitlab-service-account-key
|
name: gitlab-service-account-key
|
||||||
outputs:
|
outputs:
|
||||||
#- name: dynamicbible.comselfLink
|
- name: dynamicbible.comselfLink
|
||||||
# value: "https://console.cloud.google.com/storage/browser/dynamicbible.com"
|
value: "https://console.cloud.google.com/storage/browser/dynamicbible.com"
|
||||||
#- name: dynamicbible.comgsLink
|
- name: dynamicbible.comgsLink
|
||||||
# value: "gs://dynamicbible.com"
|
value: "gs://dynamicbible.com"
|
||||||
- name: gitlab-service-account-id
|
- name: gitlab-service-account-id
|
||||||
value: $(ref.gitlab-service-account.uniqueId)
|
value: $(ref.gitlab-service-account.uniqueId)
|
||||||
- name: gitlab-service-account-email
|
- name: gitlab-service-account-email
|
||||||
|
Loading…
x
Reference in New Issue
Block a user