-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(ci): OpenRegistry build and push
- Loading branch information
1 parent
b50d39f
commit 0dd702b
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |