Skip to content

Commit 2da439c

Browse files
committed
CD[Docker]: add docker image build and push workflow
1 parent 586ec62 commit 2da439c

1 file changed

Lines changed: 5 additions & 17 deletions

File tree

.github/workflows/release-command.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ on:
44
release:
55
types: [created]
66
workflow_dispatch:
7-
# inputs:
8-
# repository:
9-
# description: "The repository from which the slash command was dispatched"
10-
# required: true
11-
# comment-id:
12-
# description: "The comment-id of the slash command"
13-
# required: true
14-
# tag:
15-
# description: "The tag to be released"
16-
# required: true
177

188
jobs:
199
release:
@@ -45,10 +35,8 @@ jobs:
4535
# release_tag: ${{ github.ref }}
4636
md5sum: FALSE
4737
sha256sum: TRUE
48-
# - name: Add reaction
49-
# uses: peter-evans/create-or-update-comment@v4
50-
# with:
51-
# token: ${{ secrets.PAT }}
52-
# repository: ${{ github.repository }}
53-
# comment-id: ${{ github.event.inputs.comment-id }}
54-
# reaction-type: hooray
38+
overwrite: TRUE
39+
- run: |
40+
docker login --username yunginnanet --password ${{ secrets.PAT }} ghcr.io
41+
docker build . --tag ghcr.io/yunginnanet/hellpot:latest
42+
docker push ghcr.io/yunginnanet/hellpot:latest

0 commit comments

Comments
 (0)