Skip to content

Commit

Permalink
split GitHub Actions workflows for vault-exec-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
jf committed Aug 30, 2024
1 parent 45614f5 commit 2fd467a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
- master
paths:
- vault-exec-agent/*.clj
- vault-exec-agent/Dockerfile
- .github/workflows/build_push_docker_hub:_vault-exec-agent.yml
- vault-exec-agent/Dockerfile.aws-cli
- .github/workflows/build_push_docker_hub:_vault-exec-agent:_aws-cli.yml


jobs:
Expand All @@ -26,21 +26,6 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: build and push bb-ops.kaniko
uses: docker/build-push-action@v6
with:
file: vault-exec-agent/Dockerfile.kaniko

push: true
sbom: true
provenance: mode=max

platforms: linux/amd64

tags: |
jeffreyjflim/bb-ops.kaniko:latest
jeffreyjflim/bb-ops.kaniko:${{ github.sha }}
- name: build and push bb-ops.aws-cli
uses: docker/build-push-action@v6
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: |
v-e-a: build+push to Docker Hub
on:
push:
branches:
- master
paths:
- vault-exec-agent/*.clj
- vault-exec-agent/Dockerfile.kaniko
- .github/workflows/build_push_docker_hub:_vault-exec-agent:_kaniko.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 bb-ops.kaniko
uses: docker/build-push-action@v6
with:
file: vault-exec-agent/Dockerfile.kaniko

push: true
sbom: true
provenance: mode=max

platforms: linux/amd64

tags: |
jeffreyjflim/bb-ops.kaniko:latest
jeffreyjflim/bb-ops.kaniko:${{ github.sha }}

0 comments on commit 2fd467a

Please sign in to comment.