File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 12
12
# define Hugo cachedir so it is not version dependent
13
13
HUGO_CACHEDIR : /tmp/hugo_cache
14
14
IMAGE_NAME : ' lichturm-website'
15
+ SERVICE_NAME : ' lichturm-website'
15
16
IMAGE_TAG : ' prod'
16
17
runs-on : ' ubuntu-latest'
17
18
steps :
81
82
buildkitd-flags : ' --debug'
82
83
83
84
# https://github.com/docker/build-push-action
84
- - name : Build and push
85
+ - name : Build and push image
85
86
uses : ' docker/build-push-action@v6'
86
87
with :
87
88
# we are not using the default git context because that would ignore our hugo build output
91
92
push : true
92
93
tags : ' ${{ secrets.CONTAINER_REGISTRY_URL }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}'
93
94
95
+ # https://github.com/google-github-actions/deploy-cloudrun
96
+ - name : Deploy Image to Cloud Run
97
+ id : ' deploy'
98
+ uses : ' google-github-actions/deploy-cloudrun@v2'
99
+ with :
100
+ service : ' ${{ env.SERVICE_NAME }}'
101
+ image : ' ${{ secrets.CONTAINER_REGISTRY_URL }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}'
102
+
94
103
# once we are bored of building containers
95
104
# - name: Install s3cmd
96
105
# run: |
You can’t perform that action at this time.
0 commit comments