testing new ci #171
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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| env: | |
| OLD_IMAGE: ghcr.io/$GIT_ORG/xreg-server | |
| jobs: | |
| build_test_push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set IMAGE env var (need to be indirect due to user of env var) | |
| run: echo "IMAGE=ghcr.io/${GIT_ORG}/xreg-server" >> $GITHUB_ENV | |
| - name: Echo env vars for debugging | |
| run: env | sort | |
| - name: ghcr.io login | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: build, test, push | |
| run: make mysql test push | |
| - env: | |
| SOAPHUB_SSH_KEY: ${{ secrets.SOAPHUB_SSH_KEY }} | |
| run: misc/restart SOAPHUB_SSH_KEY ubuntu@soaphub.org | |