Skip to content

Fix Dockerfile after centos7 eol #103

Fix Dockerfile after centos7 eol

Fix Dockerfile after centos7 eol #103

Workflow file for this run

name: Test
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Extract branch name
shell: bash
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/heads/} | tr / -)"
id: extract_branch
- name: "Pull core image"
shell: bash
run: echo -n "##[set-output name=tag;]" && docker pull tomlegkov/marine-core:${{ steps.extract_branch.outputs.tag }} > /dev/null && echo "${{ steps.extract_branch.outputs.tag }}" || echo marine
id: detect_tag
- name: "Build marine-python docker image"
run: docker build --build-arg MARINE_CORE_TAG=${{ steps.detect_tag.outputs.tag }} --pull -t marine-python .
- name: "Extract wheel from docker image"
run: docker run -i --rm -v $(pwd)/dist:/io marine-python sh -c "cp /dist/marine*.whl /io/"
- uses: actions/upload-artifact@v2
with:
path: dist/*.whl
- name: "Run marine-python tests"
run: docker run -i --rm marine-python