Skip to content

Commit 81264e1

Browse files
authored
Merge pull request #171 from 0xPolygon/SPEC-1058-gcp-github-workflow-update
Spec 1058 gcp GitHub workflow update
2 parents ab186ec + 7b0ff4d commit 81264e1

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
name: Deploy docker image to GCP
22
on:
33
push:
4-
branches:
4+
branches:
55
- master
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: 'Tag to build and push'
10+
required: true
11+
type: string
612

713
permissions:
814
contents: read
@@ -14,8 +20,9 @@ jobs:
1420

1521
docker-release:
1622
needs:
17-
- generate-version
18-
uses: 0xPolygon/pipelines/.github/workflows/gcp_pipeline_release_image.yaml@main
23+
- generate-version
24+
uses: 0xPolygon/pipelines/.github/workflows/gcp_pipeline_release_image.yaml@main
1925
with:
20-
image_name: static
21-
image_tag: ${{ needs.generate-version.outputs.version }}
26+
image_name: "static"
27+
image_tag: ${{ inputs.tag || needs.generate-version.outputs.version }}
28+
checkout_ref: ${{ github.ref_name }}

0 commit comments

Comments
 (0)