-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.21 KB
/
openregistry.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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