-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from edenia/update-ci-pipeline
Update ci/cd pipeline
- Loading branch information
Showing
6 changed files
with
31 additions
and
42 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 |
---|---|---|
|
@@ -6,30 +6,28 @@ on: | |
- main | ||
|
||
jobs: | ||
create-dev-image: | ||
publish: | ||
name: build and deploy | ||
runs-on: ubuntu-latest | ||
environment: development | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Docker | ||
uses: docker-practice/[email protected] | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log in to docker registry | ||
run: | | ||
echo ${{ secrets.DOCKER_PASSWORD}} | docker login \ | ||
--username ${{ secrets.DOCKER_USERNAME }} \ | ||
--password-stdin | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build new images and push | ||
run: | | ||
make \ | ||
build-docker-images \ | ||
push-docker-images | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
# webapp | ||
PORT: 80 | ||
REACT_APP_TAG: ${{ github.ref }} | ||
|
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 |
---|---|---|
|
@@ -6,30 +6,28 @@ on: | |
- v* | ||
|
||
jobs: | ||
create-prod-image: | ||
publish: | ||
name: build and deploy | ||
runs-on: ubuntu-latest | ||
environment: production | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Docker | ||
uses: docker-practice/[email protected] | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log in to docker registry | ||
run: | | ||
echo ${{ secrets.DOCKER_PASSWORD }} | docker login \ | ||
--username ${{ secrets.DOCKER_USERNAME }} \ | ||
--password-stdin | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build new images and push | ||
run: | | ||
make \ | ||
build-docker-images \ | ||
push-docker-images | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
# webapp | ||
PORT: 80 | ||
REACT_APP_TAG: ${{ github.ref }} | ||
|
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
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
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
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