diff --git a/.github/workflows/horizon-master.yml b/.github/workflows/horizon-master.yml new file mode 100644 index 0000000000..b18bb82d11 --- /dev/null +++ b/.github/workflows/horizon-master.yml @@ -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 diff --git a/.github/workflows/horizon-release.yml b/.github/workflows/horizon-release.yml index 60597e17e6..90c8b65796 100644 --- a/.github/workflows/horizon-release.yml +++ b/.github/workflows/horizon-release.yml @@ -10,6 +10,7 @@ jobs: publish-artifacts: runs-on: ubuntu-latest + name: Upload artifacts to GitHub release steps: - name: Run deprecation tests shell: bash @@ -44,6 +45,7 @@ jobs: push-horizon-image: runs-on: ubuntu-latest + name: Push stellar/horizon:{version,latest} to DockerHub steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/horizon.yml b/.github/workflows/horizon.yml index a2a074489a..a216e3ec0f 100644 --- a/.github/workflows/horizon.yml +++ b/.github/workflows/horizon.yml @@ -8,6 +8,7 @@ on: jobs: integration: + name: Integration tests strategy: matrix: os: [ubuntu-latest] @@ -87,49 +88,3 @@ jobs: # TODO(fons): Commented out until we disable the CircleCI jobs run: \# docker push stellar/horizon-verify-range - push-horizon-image: - if: ${{ github.ref == 'master' }} - 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: - if: ${{ github.ref == 'master' }} - 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