Skip to content

Commit

Permalink
ci: fix github run id
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanFM committed Jan 13, 2021
1 parent bfef4f0 commit 9f9104e
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,11 @@ jobs:
- name: Upload to Github Docker Registry
uses: elgohr/Publish-Docker-Github-Action@3.02
with:
name: jina-ai/jina/jina
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: docker.pkg.github.com
name: jina-ai/jina
dockerfile: Dockerfiles/pip.Dockerfile
buildargs: PIP_TAG
buildoptions: ${{ matrix.build_option }}
tags: test-pip${{env.GITHUB_RUN_ID}}
tags: test-pip
no_push: true
- id: set-matrix
run: |
sudo apt-get install jq
Expand All @@ -103,9 +100,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: |
docker login docker.pkg.github.com -u $GITHUB_ACTOR -p $GITHUB_TOKEN
docker pull docker.pkg.github.com/jina-ai/jina/jina:test-pip${{env.GITHUB_RUN_ID}}
docker run docker.pkg.github.com/jina-ai/jina/jina:test-pip${{env.GITHUB_RUN_ID}} hello-world
docker run jina-ai/jina:test-pip hello-world
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -126,9 +121,6 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Prepare enviroment
run: |
docker login docker.pkg.github.com -u $GITHUB_ACTOR -p $GITHUB_TOKEN
docker pull docker.pkg.github.com/jina-ai/jina/jina:test-pip${{env.GITHUB_RUN_ID}}
docker tag docker.pkg.github.com/jina-ai/jina/jina:test-pip${{env.GITHUB_RUN_ID}} jinaai/jina:test-pip
python -m pip install --upgrade pip
pip install ".[cicd,test,daemon]" --no-cache-dir
jina check
Expand Down

0 comments on commit 9f9104e

Please sign in to comment.