Merge pull request #833 from autonomys/832-some-apollo-query-fail-to-… #397
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: Update container image | |
on: | |
push: | |
branches: | |
- main | |
env: | |
PROCESSOR_NAME: ghcr.io/${{ github.repository_owner }}/blockexplorer-processor:latest | |
API_SERVER_NAME: ghcr.io/${{ github.repository_owner }}/blockexplorer-api-server:latest | |
HEALTH_CHECK_NAME: ghcr.io/${{ github.repository_owner }}/health-check:latest | |
jobs: | |
push: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Log into registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: Build processor image | |
run: docker build . --target processor -t squid-processor --tag $PROCESSOR_NAME | |
working-directory: indexers/squid-blockexplorer | |
- name: Build API server image | |
run: docker build . --target query-node -t graphql-server --tag $API_SERVER_NAME | |
working-directory: indexers/squid-blockexplorer | |
- name: Build Health check image | |
run: docker build . --file Dockerfile --tag $HEALTH_CHECK_NAME | |
working-directory: health-check | |
- name: Push processor image | |
run: docker push $PROCESSOR_NAME | |
- name: Push API server image | |
run: docker push $API_SERVER_NAME | |
- name: Push Health check image | |
run: docker push $HEALTH_CHECK_NAME |