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
openregistry-beta[bot] authored Jan 9, 2024
1 parent b50d39f commit 0dd702b
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: https://beta-api.openregistry.dev/jsdp/dotfiles:${{ 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: https://beta-api.openregistry.dev
username: jsdp
- 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 0dd702b

Please sign in to comment.