Add troubleshooting note on about xdebug (#31) #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Push to Hub | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build-prod-containers: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Build containers | |
run: | | |
export TAG=$(git rev-parse --short "$GITHUB_SHA") | |
docker compose -f compose.prod.yaml build | |
export TAG=latest | |
docker compose -f compose.prod.yaml build | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Push to hub | |
run: | | |
export TAG=$(git rev-parse --short "$GITHUB_SHA") | |
docker compose -f compose.prod.yaml push | |
export TAG=latest | |
docker compose -f compose.prod.yaml push | |
build-dev-containers: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Build containers | |
run: docker compose build | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Push to hub | |
run: docker compose push |