diff --git a/.github/workflows/app-console.yml b/.github/workflows/app-console.yml index 0b06964..bbfc45b 100644 --- a/.github/workflows/app-console.yml +++ b/.github/workflows/app-console.yml @@ -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: |