Skip to content

Commit b8be3a0

Browse files
committed
Pipeline
1 parent 3a9b923 commit b8be3a0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/docker-image.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "dockerized" ]
6+
7+
jobs:
8+
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
packages: write
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: 'Login to GitHub Container Registry'
18+
uses: docker/login-action@v1
19+
with:
20+
registry: ghcr.io
21+
username: ${{github.actor}}
22+
password: ${{secrets.GITHUB_TOKEN}}
23+
- name: Build the Docker image
24+
run: docker build . --file Dockerfile --tag ghcr.io/int2001/dxclusterapi:latest
25+
- name: Push the tagged Docker image
26+
run: docker push ghcr.io/int2001/dxclusterapi:latest

0 commit comments

Comments
 (0)