ANON-201 - Rename http responses and some logs leftovers, remove link… #21
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
name: Stage Build Image and Deploy | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
env: | |
image-name: ghcr.io/anyone-protocol/ator-protocol-stage | |
image-tag: ${{ github.sha }} | |
da-1-hc-url: http://88.99.219.105:9130/tor/status-vote/current/consensus | |
da-2-hc-url: http://176.9.29.53:9130/tor/status-vote/current/consensus | |
da-3-hc-url: http://95.216.32.105:9130/tor/status-vote/current/consensus | |
da-4-hc-url: http://176.9.29.53:9131/tor/status-vote/current/consensus | |
da-5-hc-url: http://176.9.29.53:9132/tor/status-vote/current/consensus | |
da-6-hc-url: http://95.216.32.105:9131/tor/status-vote/current/consensus | |
da-7-hc-url: http://95.216.32.105:9132/tor/status-vote/current/consensus | |
jobs: | |
build-and-push: | |
runs-on: ${{ matrix.platform.runs-on }} | |
strategy: | |
matrix: | |
platform: | |
- name: linux/amd64 | |
image-suffix: amd64 | |
runs-on: ubuntu-latest | |
- name: linux/arm64 | |
image-suffix: arm64 | |
runs-on: arm64 | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Build and push | |
uses: ./.github/actions/build-and-push | |
with: | |
docker-username: ${{ github.actor }} | |
docker-password: ${{ secrets.GITHUB_TOKEN }} | |
docker-base-repo: ${{ env.image-name }}-${{ matrix.platform.image-suffix }} | |
docker-tag: ${{ env.image-tag }} | |
docker-platform: ${{ matrix.platform.name }} | |
version: ${{ github.sha }} | |
environment: stage | |
event-name: ${{ github.event_name }} | |
multiarch-push: | |
runs-on: ubuntu-latest | |
needs: build-and-push | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Multiarch push | |
uses: ./.github/actions/multiarch-push | |
with: | |
docker-username: ${{ github.actor }} | |
docker-password: ${{ secrets.GITHUB_TOKEN }} | |
docker-base-repo: ${{ env.image-name }} | |
docker-tag: ${{ env.image-tag }} | |
event-name: ${{ github.event_name }} | |
deploy: | |
needs: multiarch-push | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Deploy new version | |
uses: ./.github/actions/deploy | |
with: | |
image-tag: ${{ env.image-tag }} | |
nomad-job-file: anon-da-node-stage.hcl | |
health-checks: "${{ env.da-1-hc-url }}|${{ env.da-2-hc-url }}|${{ env.da-3-hc-url }}|${{ env.da-4-hc-url }}|${{ env.da-5-hc-url }}|${{ env.da-6-hc-url }}|${{ env.da-7-hc-url }}" | |
nomad-cacert: operations/admin-ui-ca.crt | |
nomad-token: ${{ secrets.NOMAD_TOKEN_ATOR_NETWORK_DEPLOY }} | |
nomad-addr: ${{ secrets.NOMAD_DEPLOY_ADDR }} | |
consul-cacert: operations/admin-ui-ca.crt | |
consul-http-token: ${{ secrets.CONSUL_HTTP_TOKEN_ATOR_NETWORK_DEPLOY }} | |
consul-addr: ${{ secrets.CONSUL_DEPLOY_ADDR }} |