Skip to content

Commit

Permalink
build(ci): OpenRegistry build and push
Browse files Browse the repository at this point in the history
  • Loading branch information
test-app-or[bot] authored Sep 24, 2023
1 parent 35e74ee commit caf4789
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/openregistry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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: openregistry.dev/${{ github.repository }}:${{ github.sha }}

steps:
- name: Checkout the branch
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
id: buildx
with:
install: true
version: latest

- name: Login to OpenRegistry
uses: docker/login-action@v2
with:
registry: openregistry.dev
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build image
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
platforms: linux/amd64
push: true
target: runner
tags: ${{ env.CONTAINER_IMAGE_NAME }}

0 comments on commit caf4789

Please sign in to comment.