Skip to content

Commit 007b724

Browse files
authored
Add push to Quay.io to CLI image (#59)
1 parent 24e1f16 commit 007b724

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/sysdig-cli-scanner.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,21 @@ jobs:
9494
build-args: |
9595
VERSION=${{ env.IMAGE_TAG }}
9696
tags: ${{ env.REGISTRY_HOST }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
97+
98+
- name: Login to Quay.io
99+
uses: docker/login-action@v3
100+
with:
101+
registry: quay.io
102+
username: ${{ secrets.QUAY_USERNAME }}
103+
password: ${{ secrets.QUAY_PASSWORD }}
104+
105+
- name: Build and push Docker image
106+
id: build
107+
uses: docker/build-push-action@v5
108+
with:
109+
context: ${{ env.DOCKERFILE_CONTEXT }}
110+
file: "${{ env.DOCKERFILE_CONTEXT }}Containerfile"
111+
push: true
112+
build-args: |
113+
VERSION=${{ env.IMAGE_TAG }}
114+
tags: quay.io/sysdig/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}

0 commit comments

Comments
 (0)