dropped .travis.yml #50
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: Build Taiga image | |
| on: push | |
| env: | |
| IMAGE_TAG: us.gcr.io/cds-docker-containers/taiga:ga-build-${{ github.run_number }} | |
| jobs: | |
| build-docker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: write SHA to file | |
| run: "bash write_version.sh ${{ github.sha }}" | |
| - name: Login to GCR | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: us.gcr.io | |
| username: _json_key | |
| password: ${{ secrets.DEPLOY_SVC_ACCT }} | |
| - name: Build Docker image | |
| run: bash ./build_docker.sh ${{ env.IMAGE_TAG }} | |
| - name: Run tests | |
| run: "docker run ${{ env.IMAGE_TAG }} pytest" | |
| - name: Push Docker image | |
| run: docker push ${{ env.IMAGE_TAG }} |