Skip to content

Commit c28e0f0

Browse files
ci: build and push image to ghcr
1 parent 7607e4d commit c28e0f0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
on: [push]
3+
4+
jobs:
5+
build-and-push-image:
6+
runs-on: ubuntu-latest
7+
env:
8+
IMAGE_NAME: "oc4ids-datastore-pipeline"
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Login to GitHub Container Registry
12+
uses: docker/login-action@v3
13+
with:
14+
registry: ghcr.io
15+
username: ${{ github.actor }}
16+
password: ${{ secrets.GITHUB_TOKEN }}
17+
- name: Build and push image
18+
run: |
19+
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME:latest
20+
echo $IMAGE_ID
21+
docker build -t oc4ids-datastore-pipeline .
22+
docker push ${IMAGE_ID}

0 commit comments

Comments
 (0)