docs: update README with latest setup #1066
Workflow file for this run
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 and publish Docker image | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize] | |
release: | |
types: [published] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-publish-image: | |
runs-on: buildjet-4vcpu-ubuntu-2204 | |
if: | | |
(github.event_name == 'release' && github.event.action == 'published') || | |
github.ref == 'refs/heads/main' || | |
(github.event_name == 'pull_request' && | |
github.event.pull_request.head.repo.full_name == github.repository) | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build and push Fuel Explorer Graphql image | |
uses: ./.github/actions/docker-publish | |
id: publish | |
with: | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
image: ghcr.io/fuellabs/fuel-explorer | |
dockerfile: deployment/Dockerfile | |
context: ./packages/graphql | |
# Temporary publish a new version of the graphql-new | |
# until the graphql removed to use only the new version | |
build-and-publish-image-v2: | |
runs-on: buildjet-4vcpu-ubuntu-2204 | |
if: | | |
(github.event_name == 'release' && github.event.action == 'published') || | |
github.ref == 'refs/heads/main' || | |
(github.event_name == 'pull_request' && | |
github.event.pull_request.head.repo.full_name == github.repository) | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build and push Fuel Explorer Graphql image V2 | |
uses: ./.github/actions/docker-publish | |
id: publish | |
with: | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
image: ghcr.io/fuellabs/fuel-explorer | |
dockerfile: deployment/Dockerfile.v2 | |
context: ./packages/graphql-new |