Skip to content

build(ci): OpenRegistry build and push #79

build(ci): OpenRegistry build and push

build(ci): OpenRegistry build and push #79

Workflow file for this run

name: "Build Container Image"
on: [push, pull_request]
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-docker:
name: "Build Container image"
runs-on: ubuntu-latest
env:
CONTAINER_IMAGE_NAME: http://localhost:5000/yami:${{ github.sha }}
steps:
- name: Checkout the branch
uses: actions/checkout@v4
with:
fetch-depth: 0

Check failure on line 22 in .github/workflows/openregistry.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/openregistry.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
id: buildx
with:
install: true
version: latest
- name: Login to OpenRegistry
uses: docker/login-action@v3
with:
registry: http://localhost:5000
username: yami
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
platforms: linux/amd64
push: true
target: runner
tags: ${{ env.CONTAINER_IMAGE_NAME }}