-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions for Publish Docker Image (#103)
* Add GitHub Actions for publishing docker * Change frontend env for prod * Change image name
- Loading branch information
Showing
3 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Base Docker Publish | ||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
description: version to build | ||
required: true | ||
type: string | ||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Build & Push Image | ||
env: | ||
VERSION: ${{ inputs.version }} | ||
run: docker build -t yorkieteam/codepair-poc:$VERSION --push ./backend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: docker-publish-latest | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "backend/**" | ||
jobs: | ||
call-base-docker-publish: | ||
uses: ./.github/workflows/base-docker-publish.yml | ||
secrets: inherit | ||
with: | ||
version: latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
VITE_YORKIE_API_ADDR='https://api.yorkie.dev' | ||
VITE_YORKIE_API_KEY='cmggkp8ksk14av0keupg' | ||
VITE_API_ADDR="https://codepair-api.yorkie.dev" | ||
VITE_YORKIE_API_ADDR="https://api.yorkie.dev" | ||
VITE_YORKIE_API_KEY="cmggkp8ksk14av0keupg" | ||
|
||
|