-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add convenient "COPY --from" source images: bb-ops, and bb-ops.alpine
- Loading branch information
Showing
3 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: | | ||
bb-ops: build+push to Docker Hub | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- pipeline-notifier/*.clj | ||
- vault-exec-agent/vault-exec-agent.clj | ||
- Dockerfile* | ||
- .github/workflows/build_push_docker_hub:_bb-ops.yml | ||
|
||
|
||
jobs: | ||
build_and_push_docker_hub: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: set up docker buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: log in to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
- name: build and push (Docker Hub) | ||
uses: docker/build-push-action@v6 | ||
with: | ||
file: pipeline-notifier/Dockerfile | ||
|
||
push: true | ||
sbom: true | ||
provenance: mode=max | ||
|
||
platforms: | | ||
linux/amd64 | ||
linux/arm64 | ||
tags: | | ||
jeffreyjflim/bb-ops:latest | ||
jeffreyjflim/bb-ops:${{ github.sha }} | ||
- name: build and push .alpine (Docker Hub) | ||
uses: docker/build-push-action@v6 | ||
with: | ||
file: pipeline-notifier/Dockerfile.alpine | ||
|
||
push: true | ||
sbom: true | ||
provenance: mode=max | ||
|
||
platforms: linux/amd64 | ||
|
||
tags: | | ||
jeffreyjflim/bb-ops.alpine:latest | ||
jeffreyjflim/bb-ops.alpine:${{ github.sha }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM babashka/babashka | ||
|
||
COPY \ | ||
pipeline-notifier/gitlab2teams.clj \ | ||
vault-exec-agent/vault-exec-agent.clj \ | ||
\ | ||
/scripts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM babashka/babashka:alpine | ||
|
||
COPY \ | ||
pipeline-notifier/gitlab2teams.clj \ | ||
vault-exec-agent/vault-exec-agent.clj \ | ||
\ | ||
/scripts/ |