-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DockerHub-Image #451
Closed
Closed
DockerHub-Image #451
Changes from 32 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
7b7ac58
publishing images now
i3rotlher 4b61cbb
added envs
i3rotlher 8415d82
redisgned docker
i3rotlher b2d52c3
publish images action
i3rotlher 3535357
changed readme
i3rotlher 9a3578b
updated readme
i3rotlher 41056dd
updated readme
i3rotlher ad27245
removed old files from gitignore
i3rotlher c276d03
quick test
i3rotlher 9fa6259
updated readme
i3rotlher 8c5512d
removed old files from gitignore
i3rotlher 55372b4
quick test
i3rotlher c43b964
removed test
i3rotlher 658994d
Merge branch 'DockerHub-Image' of https://github.com/adessoSE/Seed-Te…
i3rotlher 4ddf5fb
test
i3rotlher 58f04e6
test
i3rotlher db29e22
test
i3rotlher 152382a
old_compose
i3rotlher a7f3891
redo dokcer-compose
i3rotlher 2c4ddf6
gogo
i3rotlher 11a62e3
Buffering output
i3rotlher 410ef7c
override error
i3rotlher 51dc11f
ops
i3rotlher aadf12b
sleep
i3rotlher bdbce24
verbose
i3rotlher 50e3aa9
removed -1 at dbconenctor
i3rotlher e5eef83
removed exit from dbconnector
i3rotlher ea26190
Test
i3rotlher 493e2f9
Go
i3rotlher 64c3064
changed command
i3rotlher eb4cff7
back
i3rotlher 6beebf8
moved compose
i3rotlher 9388586
Test
i3rotlher 7a3bd31
Test
i3rotlher cbb0528
adding DB
i3rotlher 6df92f7
set env in jest
i3rotlher e778e10
removed database
i3rotlher 5256c0e
ups
i3rotlher 0cbd8d1
removed volume
i3rotlher 8519a36
tests work, skipped missing
i3rotlher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,53 @@ | ||
name: Build and Publish Docker Image | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'Seed-Test_v*' | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Get Tag Name | ||
id: get_tag_name | ||
run: | | ||
version=$(echo $GITHUB_REF | sed 's/refs\/tags\///' | sed 's/.*_//') | ||
echo "version=${version}" >> ${GITHUB_OUTPUT} | ||
|
||
# BACKEND | ||
- name: Build Docker Image | ||
run: docker build -t seed-test-backend:${{ steps.get_tag_name.outputs.version }} ./backend | ||
|
||
- name: Tag Docker Image as Latest | ||
run: | | ||
docker tag seed-test-backend:${{ steps.get_tag_name.outputs.version }} ${{ secrets.DOCKER_USERNAME }}/seed-test-backend:${{ steps.get_tag_name.outputs.version }} | ||
docker tag seed-test-backend:${{ steps.get_tag_name.outputs.version }} ${{ secrets.DOCKER_USERNAME }}/seed-test-backend:latest | ||
|
||
- name: Push Docker Image to Docker Hub | ||
run: | | ||
docker push ${{ secrets.DOCKER_USERNAME }}/seed-test-backend:${{ steps.get_tag_name.outputs.version }} | ||
docker push ${{ secrets.DOCKER_USERNAME }}/seed-test-backend:latest | ||
|
||
# FRONTEND | ||
- name: Build Docker Image | ||
run: docker build -t seed-test-frontend:${{ steps.get_tag_name.outputs.version }} ./frontend | ||
|
||
- name: Tag Docker Image as Latest | ||
run: | | ||
docker tag seed-test-frontend:${{ steps.get_tag_name.outputs.version }} ${{ secrets.DOCKER_USERNAME }}/seed-test-frontend:${{ steps.get_tag_name.outputs.version }} | ||
docker tag seed-test-frontend:${{ steps.get_tag_name.outputs.version }} ${{ secrets.DOCKER_USERNAME }}/seed-test-frontend:latest | ||
|
||
- name: Push Docker Image to Docker Hub | ||
run: | | ||
docker push ${{ secrets.DOCKER_USERNAME }}/seed-test-frontend:${{ steps.get_tag_name.outputs.version }} | ||
docker push ${{ secrets.DOCKER_USERNAME }}/seed-test-frontend: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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: "2.12" | ||
|
||
services: | ||
backend: | ||
build: | ||
context: ./backend | ||
dockerfile: Dockerfile | ||
image: seed-test-backend:latest | ||
ports: | ||
- "8080:8080" | ||
container_name: "Seed-backend" | ||
restart: always | ||
|
||
frontend: | ||
build: | ||
context: ./frontend | ||
dockerfile: Dockerfile | ||
image: seed-test-frontend:latest | ||
ports: | ||
- "4200:4200" | ||
container_name: "Seed-frontend" | ||
depends_on: | ||
- backend | ||
restart: always |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / SonarCloud
Sensitive secrets should not be disclosed Critical