Skip to content

Commit

Permalink
Set environment variables for mysql service
Browse files Browse the repository at this point in the history
  • Loading branch information
danigargar committed Jan 16, 2024
1 parent 5806191 commit 00f1ab3
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/app-console.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,32 @@ on:
permissions:
contents: read

env:
MYSQL_ROOT_PASSWORD: changeme
MYSQL_DATABASE: demo
MYSQL_USER: regular
MYSQL_PASSWORD: changeme

jobs:
build:

runs-on: ubuntu-latest

# services:
# db:
# image: mysql
# env:
# MYSQL_ROOT_PASSWORD: ${{env.MYSQL_ROOT_PASSWORD}}
# MYSQL_DATABASE: ${{env.MYSQL_ROOT_PASSWORD}}
# MYSQL_USER: ${{env.MYSQL_ROOT_PASSWORD}}
# MYSQL_PASSWORD: ${{env.MYSQL_ROOT_PASSWORD}}
# ports:
# - 3306:3306
services:
db:
image: mysql
env:
MYSQL_ROOT_PASSWORD: ${{ env.MYSQL_ROOT_PASSWORD }}
MYSQL_DATABASE: ${{ env.MYSQL_DATABASE }}
MYSQL_USER: ${{ env.MYSQL_USER }}
MYSQL_PASSWORD: ${{ env.MYSQL_PASSWORD }}
ports:
- 3306:3306

steps:
- name: Inspect env variables II
run: |
echo "value: ${{env.MYSQL_ROOT_PASSWORD}}"
echo "value: ${{ env.MYSQL_ROOT_PASSWORD }}"
- name: Add hosts to /etc/hosts
run: |
Expand Down

0 comments on commit 00f1ab3

Please sign in to comment.