Skip to content

Commit 13c4602

Browse files
committed
adding pushing
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
1 parent 4c9ef61 commit 13c4602

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,24 +109,22 @@ jobs:
109109
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
110110

111111
- name: Hub login
112+
if: github.event_name != 'pull_request'
112113
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
113114
with:
114115
username: ${{ vars.DOCKERBUILDBOT_USERNAME }}
115116
password: ${{ secrets.DOCKERBUILDBOT_WRITE_PAT }}
116117

117118
- name: Set up Docker Buildx
118119
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
119-
with:
120-
version: "lab:latest"
121-
driver: cloud
122-
endpoint: "docker/make-product-smarter"
123-
install: true
124120

125-
- name: Install Task
126-
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
121+
- name: Build and push image
122+
uses: docker/build-push-action@v5
127123
with:
128-
repo-token: ${{ secrets.GITHUB_TOKEN }}
129-
version: 3.x
130-
131-
- name: Build
132-
run: task build-image
124+
context: .
125+
push: ${{ github.event_name != 'pull_request' }}
126+
sbom: true
127+
provenance: mode=max
128+
tags: ${{ steps.metadata.outputs.tags }}
129+
labels: ${{ steps.metadata.outputs.labels }}
130+
build-args: GIT_COMMIT=${{ github.sha }}

0 commit comments

Comments
 (0)