chore: update subgraphs to use id on encoder (#24) #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: Build Availability Oracle | |
on: | |
push: | |
branches: | |
- main | |
env: | |
BASE_IMAGE: ghcr.io/graphprotocol/availability-oracle | |
DOCKERFILE: Dockerfile.availability-oracle | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Docker meta | |
id: docker_meta | |
uses: docker/metadata-action@v3 | |
with: | |
images: ${{ env.BASE_IMAGE }} | |
tags: | | |
type=sha | |
type=raw,value=latest | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
cache-from: type=registry,ref=${{ env.BASE_IMAGE }}:latest | |
cache-to: type=inline | |
file: ${{ env.DOCKERFILE }} | |
tags: ${{ steps.docker_meta.outputs.tags }} | |
push: true |