Merge pull request #2031 from serlo/oHCLt-kulla-2025-11-21-13-10 #805
This file contains hidden or 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: Push DB migration image | |
| on: | |
| # not a problem if we do it at every push because it will check if the image already exists | |
| push: | |
| jobs: | |
| docker-image: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.actor != 'dependabot[bot]' }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: ./.github/actions/setup-node | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push Docker image | |
| run: | | |
| cd packages/db-migrations | |
| DOCKER_REGISTRY=ghcr.io DOCKER_REPOSITORY=$(echo $GITHUB_REPOSITORY)/db-migration yarn push-image | |
| env: | |
| DOCKER_REGISTRY: ghcr.io | |
| DOCKER_REPOSITORY: ${{ github.repository }}/db-migration |