Skip to content
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

Frontend/feature/191 add frontend deploy GitHub actions #192

Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .github/workflows/frontend.yml
boraykasap marked this conversation as resolved.
Show resolved Hide resolved

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/frontend_deploy_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: frontend-staging-workflow

on:
workflow_run:
workflows: ["Front-End CI"]
types:
- completed
branches:
- staging

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Authorize with doctl
boraykasap marked this conversation as resolved.
Show resolved Hide resolved
run: echo ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} | doctl auth init --context github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if possible this should be the action-doctl using our digitalocean access token


- name: Login to Docker registry
run: doctl registry login --context github-actions

- name: Build Docker image
run: docker compose -f compose.yml build

- name: Tag Docker image
run: docker tag bounswe2024group1-web:latest registry.digitalocean.com/semantic-browse/web-staging:latest

- name: Push Docker image
run: docker push registry.digitalocean.com/semantic-browse/web-staging:latest
2 changes: 1 addition & 1 deletion backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jwt.signing.key=413F4428472B4B6250655368566D5970337336763979244226452948404D6351
spring.application.name=cuisines
spring.datasource.url=jdbc:mysql://localhost:3306/cuisines-test?createDatabaseIfNotExist=true
spring.datasource.username=root
spring.datasource.password=adminadmin
spring.datasource.password=admin
boraykasap marked this conversation as resolved.
Show resolved Hide resolved
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.show-sql=true
Expand Down
Loading