forked from stellar/go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all: migrate the rest of the CircleCI jobs to GitHub Actions (stellar…
- Loading branch information
Showing
7 changed files
with
167 additions
and
14 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
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,54 @@ | ||
name: Horizon master | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
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 ${{ github.sha }} ) | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@bb984efc561711aaa26e433c32c3521176eae55b | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push to DockerHub | ||
uses: docker/build-push-action@7f9d37fa544684fb73bfe4835ed7214c255ce02b | ||
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@bb984efc561711aaa26e433c32c3521176eae55b | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push to DockerHub | ||
uses: docker/build-push-action@7f9d37fa544684fb73bfe4835ed7214c255ce02b | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Horizon release | ||
|
||
on: | ||
push: | ||
tags: ['horizon-v*'] | ||
|
||
jobs: | ||
|
||
publish-artifacts: | ||
runs-on: ubuntu-latest | ||
name: Upload artifacts to GitHub release | ||
steps: | ||
- name: Run deprecation tests | ||
shell: bash | ||
run: | | ||
export VERSION=${GITHUB_REF_NAME#horizon-v} | ||
echo "Searching for \"Action needed in release ${VERSION}\" tags..." | ||
# Negate the result so process exits with 1 if anything found | ||
! egrep -irn -A 1 --include=*.go "Action.+needed.+in.+release:.+$VERSION" ./ | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: ./.github/actions/setup-go | ||
with: | ||
go-version: 1.17 | ||
|
||
- name: Check dependencies | ||
run: ./gomod.sh | ||
|
||
- name: Build binaries | ||
run: go run ./support/scripts/build_release_artifacts/main.go | ||
|
||
# TODO: Disabled until we remove the CircleCI jobs | ||
- if: false | ||
name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@483c1e56f95e88835747b1c7c60581215016cbf2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.ref_name }} | ||
file: ./dist/* | ||
file_glob: true | ||
overwrite: 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
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