Skip to content

Commit 7d3a405

Browse files
author
Rajat
committed
release action also does publishing
1 parent 318be95 commit 7d3a405

File tree

1 file changed

+40
-6
lines changed

1 file changed

+40
-6
lines changed

.github/workflows/release-from-pr-comment.yaml

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,50 @@ jobs:
6767
- name: Setup pnpm
6868
uses: pnpm/action-setup@v4
6969

70-
- name: Configure CI Git User
70+
- name: Configure git
7171
run: |
72-
git config --global user.name 'CodeLit'
73-
git config --global user.email 'hi@codelit.dev'
74-
git remote set-url origin https://x-access-token:${{ secrets.PAT }}@github.com/${{ github.repository }}
75-
env:
76-
GITHUB_PAT: ${{ secrets.PAT }}
72+
git config user.name "github-actions[bot]"
73+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
7774
7875
- name: Run release script
7976
env:
8077
VERSION: ${{ steps.guard.outputs.version }}
8178
run: |
8279
pnpm release "$VERSION"
80+
81+
- name: Setup buildx
82+
uses: docker/setup-buildx-action@v1
83+
84+
- name: Login to DockerHub
85+
uses: docker/login-action@v1
86+
with:
87+
username: ${{ secrets.DOCKERNAME }}
88+
password: ${{ secrets.DOCKERTOKEN }}
89+
90+
- name: Build and push app image
91+
id: docker_build_app
92+
uses: docker/build-push-action@v2
93+
with:
94+
context: .
95+
file: ./services/app/Dockerfile
96+
push: true
97+
tags: |
98+
codelit/courselit-app:v${{ steps.guard.outputs.version }}
99+
codelit/courselit-app:latest
100+
101+
- name: Echo app image digest
102+
run: echo ${{ steps.docker_build_app.outputs.digest }}
103+
104+
- name: Build and push queue image
105+
id: docker_build_queue
106+
uses: docker/build-push-action@v2
107+
with:
108+
context: .
109+
file: ./services/queue/Dockerfile
110+
push: true
111+
tags: |
112+
codelit/courselit-queue:v${{ steps.guard.outputs.version }}
113+
codelit/courselit-queue:latest
114+
115+
- name: Echo queue image digest
116+
run: echo ${{ steps.docker_build_queue.outputs.digest }}

0 commit comments

Comments
 (0)