Skip to content

Commit

Permalink
feat: Add docker workflows for covenant_signer (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
maiquanghiep authored Dec 3, 2024
1 parent 8d23c16 commit 5728b13
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
lint_test:
uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.7.0
uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.11.1
with:
go-version: '1.23'
go-lint-version: 'v1.60.2'
Expand All @@ -19,12 +19,13 @@ jobs:
gosec-args: "-exclude-generated -exclude-dir=itest -exclude-dir=testutil -exclude-dir=covenant-signer ./..."

docker_pipeline:
uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.7.0
uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.11.1
secrets: inherit
with:
publish: false
dockerfile: ./Dockerfile
repoName: covenant-emulator
docker_scan: true

go_sec_covenant_signer:
runs-on: ubuntu-24.04
Expand All @@ -45,3 +46,12 @@ jobs:
working-directory: ./covenant-signer
run: gosec ./...

docker_pipeline_covenant_signer:
uses: babylonlabs-io/.github/.github/workflows/[email protected]
secrets: inherit
with:
publish: false
dockerfile: ./covenant-signer/Dockerfile
dockerContext: ./covenant-signer
repoName: covenant-signer
docker_scan: true
20 changes: 18 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
lint_test:
uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.7.0
uses: babylonlabs-io/.github/.github/workflows/reusable_go_lint_test.yml@v0.11.1
with:
go-version: '1.23'
go-lint-version: 'v1.60.2'
Expand All @@ -22,7 +22,7 @@ jobs:

docker_pipeline:
needs: ["lint_test"]
uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.10.2
uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.11.1
secrets: inherit
with:
publish: true
Expand Down Expand Up @@ -53,3 +53,19 @@ jobs:
- name: Run Gosec (covenant-signer)
working-directory: ./covenant-signer
run: gosec ./...

docker_pipeline_covenant_signer:
needs: ["go_sec_covenant_signer"]
uses: babylonlabs-io/.github/.github/workflows/[email protected]
secrets: inherit
with:
publish: true
dockerfile: ./covenant-signer/Dockerfile
dockerContext: ./covenant-signer
repoName: covenant-signer
docker_scan: true
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read

0 comments on commit 5728b13

Please sign in to comment.