-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out the master Horizon jobs, to avoid adding noise to PRs
- Loading branch information
Showing
3 changed files
with
59 additions
and
46 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,56 @@ | ||
name: Horizon | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
# TODO: Pull requests enabled temporarily, to test the code, remove before merging! | ||
pull_request: | ||
|
||
jobs: | ||
|
||
push-horizon-image-sha: | ||
name: Push stellar/horizon:sha to DockerHub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Get image tag (short sha) | ||
shell: bash | ||
id: get_tag | ||
run: echo ::set-output name=TAG::$(git rev-parse --short HEAD) | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_PASS }} | ||
|
||
- name: Build and push to DockerHub | ||
uses: docker/build-push-action@v2 | ||
with: | ||
# TODO: Commented out until we disable the CircleCI jobs | ||
# push: true | ||
tags: stellar/horizon:${{ steps.get_tag.outputs.TAG }} | ||
file: services/horizon/docker/Dockerfile.dev | ||
|
||
push-state-diff-image: | ||
name: Push stellar/ledger-state-diff:{sha,latest} to DockerHub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_PASS }} | ||
|
||
- name: Build and push to DockerHub | ||
uses: docker/build-push-action@v2 | ||
with: | ||
# TODO: Commented out until we disable the CircleCI jobs | ||
# push: true | ||
tags: stellar/ledger-state-diff:${{ github.sha }},stellar/ledger-state-diff:latest | ||
file: exp/tools/dump-ledger-state/Dockerfile | ||
build-args: GITCOMMIT=${{ github.sha }} | ||
no-cache: true |
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