-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create CI workflow for ledger exporter release
- Loading branch information
Showing
3 changed files
with
60 additions
and
27 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
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,36 @@ | ||
name: Ledger Exporter release | ||
|
||
on: | ||
push: | ||
tags: ['ledgerexporter-v*'] | ||
|
||
jobs: | ||
|
||
publish-docker: | ||
name: Test and push the Ledger Exporter images | ||
runs-on: ubuntu-latest | ||
env: | ||
STELLAR_CORE_VERSION: 21.0.0-1872.c6f474133.focal | ||
VERSION: ${GITHUB_REF_NAME#ledgerexporter-v} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# For pull requests, build and test the PR head not a merge of the PR with the destination. | ||
ref: ${{ github.event.pull_request.head.sha || github.ref }} | ||
- name: Build Ledger Exporter docker | ||
run: make -C exp/services/ledgerexporter docker-build | ||
|
||
- name: Run Ledger Exporter test | ||
run: make -C exp/services/ledgerexporter docker-test | ||
|
||
# Push images | ||
- if: github.ref == 'refs/heads/master' | ||
name: Login to DockerHub | ||
uses: docker/login-action@bb984efc561711aaa26e433c32c3521176eae55b | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- if: github.ref == 'refs/heads/master' | ||
name: Push to DockerHub | ||
run: make -C exp/services/ledgerexporter docker-push |
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,24 @@ | ||
name: LedgerExporter | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
|
||
jobs: | ||
ledger-exporter: | ||
name: Build and test Ledger Exporter image | ||
runs-on: ubuntu-latest | ||
env: | ||
STELLAR_CORE_VERSION: 21.0.0-1872.c6f474133.focal | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# For pull requests, build and test the PR head not a merge of the PR with the destination. | ||
ref: ${{ github.event.pull_request.head.sha || github.ref }} | ||
- name: Build Ledger Exporter docker | ||
run: make -C exp/services/ledgerexporter docker-build | ||
|
||
- name: Run Ledger Exporter test | ||
run: make -C exp/services/ledgerexporter docker-test | ||
|