Skip to content

Commit fe1cf7e

Browse files
Update go-dockerimage-pipeline.yaml
1 parent 7aa17d5 commit fe1cf7e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/go-dockerimage-pipeline.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#This workflow automatically takes my code, builds a docker image, and returns the date and time, which can be validated in the logs
22
#This is the name of this workflow
3-
name: Go Dockerimage Pipeline
3+
name: go-docker-gcp-gha-buildjob
44
#This is workflow name
5-
run-name: CI/CD Pipeline
5+
run-name: docker-go push to GCP
66
#Trigger for the workflow
77
on:
88
push:
@@ -14,12 +14,11 @@ jobs:
1414
#Specifies the type of VM OS to run.
1515
runs-on: ubuntu-latest
1616
steps:
17-
#Step1 - Checks out code
17+
#Step1 - Checks out the Go code
1818
- name: Checkout code
19-
#Most recent version of actions/checkout - checksout repo to the runner
2019
uses: actions/checkout@v5
2120

22-
#Step2 - Builds the Docker image with provided code
21+
#Step2 - Builds the Docker image with provided Go code
2322
- name: Docker
2423
run: docker build -t gotime .
2524

@@ -28,13 +27,13 @@ jobs:
2827
run: docker run --rm gotime
2928

3029
#Step4 - Authenticates to Google Cloud with the existing JSON key
31-
- name: Authenticate to Google Cloud
30+
- name: Authenticate to Google Cloud using serviceaccount
3231
uses: google-github-actions/auth@v3
3332
with:
3433
credentials_json: '${{ secrets.GCP_SA_KEY }}'
3534

3635
#Step5 - Configures Docker to access my GCP project
37-
- name: Configure Docker to access GCP project
36+
- name: Configure Docker to access GCP
3837
run: gcloud auth configure-docker us-west1-docker.pkg.dev
3938

4039
#Step6 - Tags the container and pushes to the Artifact Repo in my GCP project

0 commit comments

Comments
 (0)