Skip to content

build(ci): OpenRegistry build and push #84

build(ci): OpenRegistry build and push

build(ci): OpenRegistry build and push #84

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-automation-test:${{ github.sha }}"
steps:
- name: Checkout the branch
uses: actions/checkout@v4
- 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 }}
{}

Check failure on line 42 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 42