File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ permissions:
33 contents : read
44
55on :
6+ workflow_dispatch :
67 push :
78 branches : [main]
89 tags : ["v*"]
9798 TELEMETRY_HEADER : ${{ secrets.TELEMETRY_HEADER }}
9899
99100 build-image :
100- if : startsWith(github.ref, 'refs/tags/v')
101+ if : startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
101102 needs : [build]
102103 runs-on : ubuntu-latest
103104 steps :
@@ -119,12 +120,12 @@ jobs:
119120
120121 - name : Docker metadata
121122 id : meta
122- uses : docker/metadata-action@v5
123+ uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
123124 with :
124125 images : docker/cagent
125126
126127 - name : Build and push image
127- uses : docker/build-push-action@v5
128+ uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
128129 with :
129130 context : .
130131 push : ${{ github.event_name != 'pull_request' }}
You can’t perform that action at this time.
0 commit comments