Skip to content

Commit

Permalink
more tidy and fix bot tests
Browse files Browse the repository at this point in the history
- follow up to #494
  • Loading branch information
casperdcl committed May 5, 2021
1 parent 0fd40e1 commit 0357840
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/checkbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,23 @@ jobs:
- name: Build & Publish test image
run: |
echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
docker build -t dvcorg/cml -f ./docker/Dockerfile .
docker build -t dvcorg/cml-py3 -f ./docker/Dockerfile-py3 .
docker tag dvcorg/cml dvcorg/cml-test
docker push dvcorg/cml-test
docker build \
--build-arg "CML_VERSION=$CML_VERSION" \
--build-arg "DVC_VERSION=$DVC_VERSION" \
--build-arg "PYTHON_VERSION=$PYTHON_VERSION" \
--build-arg "BASE_IMAGE=$BASE_IMAGE" \
-t dvcorg/cml-test .
docker run --name runner --rm \
-e "REPO_TOKEN=${{ secrets.TEST_GITHUB_TOKEN }}" \
-e "RUNNER_REPO=https://github.com/${GITHUB_REPOSITORY}" \
-e "RUNNER_LABELS=cml-docker" \
-e "RUNNER_IDLE_TIMEOUT=10" \
dvcorg/cml-test
env:
CML_VERSION: 0
DVC_VERSION: 2
PYTHON_VERSION: 3.8
BASE_IMAGE: 'ubuntu:20.04'
# test container all CML features, vega and actions with issues in the past
check-container:
needs: build-container
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: Release packages and images

on:
workflow_dispatch:
release:
types:
- published
- edited

types: [published, edited]
jobs:
package:
runs-on: ubuntu-latest
Expand All @@ -16,7 +12,6 @@ jobs:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

docker:
strategy:
matrix:
Expand All @@ -37,7 +32,6 @@ jobs:
ubuntu: 20.04
runs-on: ubuntu-latest
needs: package

steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
Expand All @@ -59,7 +53,6 @@ jobs:
DVC_VERSION=${{ matrix.dvc }}
PYTHON_VERSION=${{ matrix.python }}
BASE_IMAGE=ubuntu:${{ matrix.ubuntu }}
- uses: docker/build-push-action@v2
if: matrix.gpu == true
with:
Expand Down

0 comments on commit 0357840

Please sign in to comment.