Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Atallah0 authored Nov 10, 2023
1 parent 5b4cf70 commit c8c8227
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,27 @@ jobs:
- name: Tear down Docker Compose
run: docker-compose -f docker-compose.dependencies.yaml -f docker-compose.app.yaml down

import_data:
name: Import Data in Clever Cloud Database
runs-on: ubuntu-latest
needs: test
steps:
- name: Check out the repo
uses: actions/checkout@v3
# import_data:
# name: Import Data in Clever Cloud Database
# runs-on: ubuntu-latest
# needs: test
# steps:
# - name: Check out the repo
# uses: actions/checkout@v3

- name: Import Data into Clever Cloud Database
run: |
mysql -h$CLEVER_CLOUD_DB_HOST -u$CLEVER_CLOUD_DB_USER -p$CLEVER_CLOUD_DB_PASSWORD $CLEVER_CLOUD_DB_NAME < data_dump.sql
env:
CLEVER_CLOUD_DB_HOST: ${{ secrets.CLEVER_CLOUD_DB_HOST }}
CLEVER_CLOUD_DB_USER: ${{ secrets.CLEVER_CLOUD_DB_USER }}
CLEVER_CLOUD_DB_PASSWORD: ${{ secrets.CLEVER_CLOUD_DB_PASSWORD }}
CLEVER_CLOUD_DB_NAME: ${{ secrets.CLEVER_CLOUD_DB_NAME }}
# - name: Import Data into Clever Cloud Database
# run: |
# mysql -h$CLEVER_CLOUD_DB_HOST -u$CLEVER_CLOUD_DB_USER -p$CLEVER_CLOUD_DB_PASSWORD $CLEVER_CLOUD_DB_NAME < data_dump.sql
# env:
# CLEVER_CLOUD_DB_HOST: ${{ secrets.CLEVER_CLOUD_DB_HOST }}
# CLEVER_CLOUD_DB_USER: ${{ secrets.CLEVER_CLOUD_DB_USER }}
# CLEVER_CLOUD_DB_PASSWORD: ${{ secrets.CLEVER_CLOUD_DB_PASSWORD }}
# CLEVER_CLOUD_DB_NAME: ${{ secrets.CLEVER_CLOUD_DB_NAME }}

push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
needs: import_data
needs: test
steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand Down

0 comments on commit c8c8227

Please sign in to comment.