Skip to content

Commit

Permalink
add convenient "COPY --from" source images: bb-ops, and bb-ops.alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
jf committed Sep 2, 2024
1 parent 3858fc8 commit bb87988
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/build_push_docker_hub:_bb-ops.yml
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 }}
7 changes: 7 additions & 0 deletions Dockerfile
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/
7 changes: 7 additions & 0 deletions Dockerfile.alpine
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/

0 comments on commit bb87988

Please sign in to comment.