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 Jan 2, 2024
1 parent 35e74ee commit 6968eeb
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/openregistry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
defaults:
run:
shell: bash
jobs:
build-docker:
env:
CONTAINER_IMAGE_NAME: http://localhost:5000/yami/github-automation-test:${{ github.sha }}
name: Build Container image
runs-on: ubuntu-latest
steps:
- name: Checkout the branch
uses: actions/checkout@v4
- id: buildx
name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
with:
install: true
version: latest
- name: Login to OpenRegistry
uses: docker/login-action@v3
with:
password: ${{ secrets.GITHUB_TOKEN }}
registry: http://localhost:5000
username: yami
- name: Build image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
platforms: linux/amd64
push: true
tags: ${{ env.CONTAINER_IMAGE_NAME }}
target: runner
name: Build Container Image
"on":
- push
- pull_request

0 comments on commit 6968eeb

Please sign in to comment.