We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdabe06 commit 1f52e6dCopy full SHA for 1f52e6d
.github/workflows/ci.yml
@@ -245,7 +245,19 @@ jobs:
245
password: ${{ secrets.GITHUB_TOKEN }}
246
logout: true
247
- run: echo "GHCR LOGIN SUCCESSFUL"
248
- - name: Build and push image
+ - if: ${{ github.ref_name == 'master' }}
249
+ name: Build and push image for master
250
+ run: |
251
+ docker context create buildx-build
252
+ docker buildx create --use buildx-build
253
+ docker buildx build \
254
+ -t ghcr.io/segmentio/topicctl:${SHORT_SHA} \
255
+ -t ghcr.io/segmentio/topicctl:latest \
256
+ --build-arg VERSION=${SHORT_SHA} \
257
+ --push \
258
+ .
259
+ - if: ${{ github.ref_name == 'v0' }}
260
+ name: Build and push image for v0
261
run: |
262
docker context create buildx-build
263
docker buildx create --use buildx-build
0 commit comments