diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8550af7..3694be0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,22 +8,9 @@ on: branches: [master] jobs: - build: + build_and_publish: name: Build image runs-on: ubuntu-latest - steps: - - name: Checkout commit - uses: actions/checkout@v2 - - - name: Docker Build - run: | - make build - - publish: - name: Publish auto-built image - runs-on: ubuntu-latest - needs: build - if: (github.event_name == 'release' || github.ref == 'refs/heads/master') env: DOCKER_SERVER: docker.io DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} @@ -33,17 +20,17 @@ jobs: - name: Checkout commit uses: actions/checkout@v2 - - name: Set up env vars - if: github.ref == 'refs/heads/master' + - name: Docker Build run: | - echo ::set-env name=TAGS::"$(date +%Y%m%d).debug-$GITHUB_RUN_NUMBER" - - - name: Set up env vars for release - if: startsWith(github.ref, 'refs/tags/') + make build + + - name: Setup Environment Variables + if: (github.event_name == 'release' && startsWith(github.ref, 'refs/tags/')) run: | echo ::set-env name=TAGS::"latest, ${GITHUB_REF#refs/tags/}" - name: Push image + if: (github.event_name == 'release' && startsWith(github.ref, 'refs/tags/')) run: | set -x docker login $DOCKER_SERVER --username $DOCKER_USERNAME --password $DOCKER_PASSWORD diff --git a/requirements.txt b/requirements.txt index 35e0017..c147f11 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -neuromation==20.3.23 +neuromation==20.9.3