Made LNIS Repo as default
This commit is contained in:
parent
fdc9e318fd
commit
32f234f4fc
|
@ -50,8 +50,8 @@ jobs:
|
||||||
echo "name=docker_repo::$DOCKER_REPO"
|
echo "name=docker_repo::$DOCKER_REPO"
|
||||||
echo "::set-output name=docker_repo::$DOCKER_REPO"
|
echo "::set-output name=docker_repo::$DOCKER_REPO"
|
||||||
else
|
else
|
||||||
echo "name=docker_repo::$REPO_OWNER"
|
echo "name=docker_repo::lnis-uofu"
|
||||||
echo "::set-output name=docker_repo::$REPO_OWNER"
|
echo "::set-output name=docker_repo::lnis-uofu"
|
||||||
fi
|
fi
|
||||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||||
|
|
||||||
|
@ -190,9 +190,10 @@ jobs:
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
if: ${{ env.DOCKER_REPO }}
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: ${{ (github.ref == 'refs/heads/master') || (needs.change_detect.outputs.force_upload == true) }}
|
if: ${{ (github.ref == 'refs/heads/master' && (env.DOCKER_REPO)) || (needs.change_detect.outputs.force_upload == true) }}
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
|
@ -203,15 +204,15 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./docker/Dockerfile.master
|
file: ./docker/Dockerfile.master
|
||||||
push: ${{ github.ref == 'refs/heads/master' || needs.change_detect.outputs.force_upload }}
|
push: ${{ (github.ref == 'refs/heads/master' && (env.DOCKER_REPO)) || needs.change_detect.outputs.force_upload }}
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ needs.change_detect.outputs.docker_repo }}/openfpga-master:latest
|
ghcr.io/${{ needs.change_detect.outputs.docker_repo }}/openfpga-master:latest
|
||||||
ghcr.io/${{ needs.change_detect.outputs.docker_repo }}/openfpga-master:${{ needs.change_detect.outputs.sha_short }}
|
ghcr.io/${{ needs.change_detect.outputs.docker_repo }}/openfpga-master:${{ needs.change_detect.outputs.sha_short }}
|
||||||
linux_regression_tests:
|
linux_regression_tests:
|
||||||
name: linux_regression_tests
|
name: linux_regression_tests
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
needs: [linux_build, change_detect]
|
||||||
container: ghcr.io/${{ needs.change_detect.outputs.docker_repo }}/openfpga-env
|
container: ghcr.io/${{ needs.change_detect.outputs.docker_repo }}/openfpga-env
|
||||||
needs: linux_build
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
@ -21,8 +21,8 @@ jobs:
|
||||||
echo "name=docker_repo::$DOCKER_REPO"
|
echo "name=docker_repo::$DOCKER_REPO"
|
||||||
echo "::set-output name=docker_repo::$DOCKER_REPO"
|
echo "::set-output name=docker_repo::$DOCKER_REPO"
|
||||||
else
|
else
|
||||||
echo "name=docker_repo::$REPO_OWNER"
|
echo "name=docker_repo::lnis-uofu"
|
||||||
echo "::set-output name=docker_repo::$REPO_OWNER"
|
echo "::set-output name=docker_repo::lnis-uofu"
|
||||||
fi
|
fi
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
Loading…
Reference in New Issue