Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #116 from g12-4soat/develop
Browse files Browse the repository at this point in the history
Merge Develop
  • Loading branch information
gabriellima09 authored Jan 27, 2024
2 parents 43901a2 + 8e47786 commit 2ae2265
Show file tree
Hide file tree
Showing 185 changed files with 6,731 additions and 1,679 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker-publish-api-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: API Docker Publish Develop

on:
push:
branches:
- develop
workflow_run:
workflows: ["Build API Docker Image"]
types:
- completed
workflow_dispatch:

jobs:
publish-to-docker-hub:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: docker login
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- name: Build and Push Docker image
run: |
cd src/TechLanches
TAG=$(date +%Y%m%d%H%M%S)
docker build -f Dockerfile.API -t ${{secrets.DOCKER_USERNAME}}/techlanches-api:$TAG -t ${{secrets.DOCKER_USERNAME}}/techlanches-api:develop . --no-cache
docker push ${{secrets.DOCKER_USERNAME}}/techlanches-api:$TAG
docker push ${{secrets.DOCKER_USERNAME}}/techlanches-api:develop
32 changes: 32 additions & 0 deletions .github/workflows/docker-publish-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: API Docker Publish

on:
push:
branches:
- main
workflow_run:
workflows: ["Build API Docker Image"]
types:
- completed
workflow_dispatch:

jobs:
publish-to-docker-hub:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: docker login
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- name: Build and Push Docker image
run: |
cd src/TechLanches
TAG=$(date +%Y%m%d%H%M%S)
docker build -f Dockerfile.API -t ${{secrets.DOCKER_USERNAME}}/techlanches-api:latest -t ${{secrets.DOCKER_USERNAME}}/techlanches-api:$TAG -t ${{secrets.DOCKER_USERNAME}}/techlanches-api:develop . --no-cache
docker push ${{secrets.DOCKER_USERNAME}}/techlanches-api:$TAG
docker push ${{secrets.DOCKER_USERNAME}}/techlanches-api:develop
docker push ${{secrets.DOCKER_USERNAME}}/techlanches-api:latest
31 changes: 31 additions & 0 deletions .github/workflows/docker-publish-worker-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Worker Docker Publish Develop

on:
push:
branches:
- develop
workflow_run:
workflows: ["Build Worker Docker Image"]
types:
- completed
workflow_dispatch:

jobs:
publish-to-docker-hub:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: docker login
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- name: Build and Push Docker image
run: |
cd src/TechLanches
TAG=$(date +%Y%m%d%H%M%S)
docker build -f Dockerfile.Worker -t ${{secrets.DOCKER_USERNAME}}/techlanches-worker:$TAG -t ${{secrets.DOCKER_USERNAME}}/techlanches-worker:develop . --no-cache
docker push ${{secrets.DOCKER_USERNAME}}/techlanches-worker:$TAG
docker push ${{secrets.DOCKER_USERNAME}}/techlanches-worker:develop
32 changes: 32 additions & 0 deletions .github/workflows/docker-publish-worker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Worker Docker Publish

on:
push:
branches:
- main
workflow_run:
workflows: ["Build Worker Docker Image"]
types:
- completed
workflow_dispatch:

jobs:
publish-to-docker-hub:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: docker login
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- name: Build and Push Docker image
run: |
cd src/TechLanches
TAG=$(date +%Y%m%d%H%M%S)
docker build -f Dockerfile.Worker -t ${{secrets.DOCKER_USERNAME}}/techlanches-worker:latest -t ${{secrets.DOCKER_USERNAME}}/techlanches-worker:$TAG -t ${{secrets.DOCKER_USERNAME}}/techlanches-worker:develop . --no-cache
docker push ${{secrets.DOCKER_USERNAME}}/techlanches-worker:$TAG
docker push ${{secrets.DOCKER_USERNAME}}/techlanches-worker:develop
docker push ${{secrets.DOCKER_USERNAME}}/techlanches-worker:latest
198 changes: 192 additions & 6 deletions README.md

Large diffs are not rendered by default.

733 changes: 733 additions & 0 deletions docs/TechLanchesArch.drawio

Large diffs are not rendered by default.

Loading

0 comments on commit 2ae2265

Please sign in to comment.