Skip to content

Fix JSON errors

Fix JSON errors #8

Workflow file for this run

name: preview-terminate-sectors
on:
push: {}
repository_dispatch:
types: [manual-run]
workflow_dispatch: {}
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
run-build-and-push-oci-image:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
actions: write
outputs:
digest: ${{ steps.build.outputs.digest }}
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2.2.1
- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: build
uses: docker/build-push-action@v3.2.0
with:
context: .
file: Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max