Skip to content

Commit 946b584

Browse files
committed
Split out the master Horizon jobs, to avoid adding noise to PRs
1 parent f523f56 commit 946b584

File tree

3 files changed

+59
-46
lines changed

3 files changed

+59
-46
lines changed

.github/workflows/horizon-master.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Horizon
2+
3+
on:
4+
push:
5+
branches: [master]
6+
# TODO: Pull requests enabled temporarily, to test the code, remove before merging!
7+
pull_request:
8+
9+
jobs:
10+
11+
push-horizon-image-sha:
12+
name: Push stellar/horizon:sha to DockerHub
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Get image tag (short sha)
18+
shell: bash
19+
id: get_tag
20+
run: echo ::set-output name=TAG::$(git rev-parse --short HEAD)
21+
22+
- name: Login to DockerHub
23+
uses: docker/login-action@v1
24+
with:
25+
username: ${{ secrets.DOCKER_USER }}
26+
password: ${{ secrets.DOCKER_PASS }}
27+
28+
- name: Build and push to DockerHub
29+
uses: docker/build-push-action@v2
30+
with:
31+
# TODO: Commented out until we disable the CircleCI jobs
32+
# push: true
33+
tags: stellar/horizon:${{ steps.get_tag.outputs.TAG }}
34+
file: services/horizon/docker/Dockerfile.dev
35+
36+
push-state-diff-image:
37+
name: Push stellar/ledger-state-diff:{sha,latest} to DockerHub
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v2
41+
42+
- name: Login to DockerHub
43+
uses: docker/login-action@v1
44+
with:
45+
username: ${{ secrets.DOCKER_USER }}
46+
password: ${{ secrets.DOCKER_PASS }}
47+
48+
- name: Build and push to DockerHub
49+
uses: docker/build-push-action@v2
50+
with:
51+
# TODO: Commented out until we disable the CircleCI jobs
52+
# push: true
53+
tags: stellar/ledger-state-diff:${{ github.sha }},stellar/ledger-state-diff:latest
54+
file: exp/tools/dump-ledger-state/Dockerfile
55+
build-args: GITCOMMIT=${{ github.sha }}
56+
no-cache: true

.github/workflows/horizon-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010

1111
publish-artifacts:
1212
runs-on: ubuntu-latest
13+
name: Upload artifacts to GitHub release
1314
steps:
1415
- name: Run deprecation tests
1516
shell: bash
@@ -44,6 +45,7 @@ jobs:
4445

4546
push-horizon-image:
4647
runs-on: ubuntu-latest
48+
name: Push stellar/horizon:{version,latest} to DockerHub
4749
steps:
4850
- uses: actions/checkout@v2
4951

.github/workflows/horizon.yml

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99

1010
integration:
11+
name: Integration tests
1112
strategy:
1213
matrix:
1314
os: [ubuntu-latest]
@@ -87,49 +88,3 @@ jobs:
8788
# TODO(fons): Commented out until we disable the CircleCI jobs
8889
run: \# docker push stellar/horizon-verify-range
8990

90-
push-horizon-image:
91-
if: ${{ github.ref == 'master' }}
92-
runs-on: ubuntu-latest
93-
steps:
94-
- uses: actions/checkout@v2
95-
96-
- name: Get image tag (short sha)
97-
shell: bash
98-
id: get_tag
99-
run: echo ::set-output name=TAG::$(git rev-parse --short HEAD)
100-
101-
- name: Login to DockerHub
102-
uses: docker/login-action@v1
103-
with:
104-
username: ${{ secrets.DOCKER_USER }}
105-
password: ${{ secrets.DOCKER_PASS }}
106-
107-
- name: Build and push to DockerHub
108-
uses: docker/build-push-action@v2
109-
with:
110-
# TODO: Commented out until we disable the CircleCI jobs
111-
# push: true
112-
tags: stellar/horizon:${{ steps.get_tag.outputs.TAG }}
113-
file: services/horizon/docker/Dockerfile.dev
114-
115-
push-state-diff-image:
116-
if: ${{ github.ref == 'master' }}
117-
runs-on: ubuntu-latest
118-
steps:
119-
- uses: actions/checkout@v2
120-
121-
- name: Login to DockerHub
122-
uses: docker/login-action@v1
123-
with:
124-
username: ${{ secrets.DOCKER_USER }}
125-
password: ${{ secrets.DOCKER_PASS }}
126-
127-
- name: Build and push to DockerHub
128-
uses: docker/build-push-action@v2
129-
with:
130-
# TODO: Commented out until we disable the CircleCI jobs
131-
# push: true
132-
tags: stellar/ledger-state-diff:${{ github.sha }},stellar/ledger-state-diff:latest
133-
file: exp/tools/dump-ledger-state/Dockerfile
134-
build-args: GITCOMMIT=${{ github.sha }}
135-
no-cache: true

0 commit comments

Comments
 (0)