Skip to content

Commit cdbe3ee

Browse files
committed
adding sha + dispatch for testing
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
1 parent f8b903f commit cdbe3ee

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ permissions:
33
contents: read
44

55
on:
6+
workflow_dispatch:
67
push:
78
branches: [main]
89
tags: ["v*"]
@@ -97,7 +98,7 @@ jobs:
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' }}

0 commit comments

Comments
 (0)