Skip to content

Commit

Permalink
gh-actions: need newer setuptools to run setuptools_scm
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Oct 20, 2023
1 parent ace770d commit 8202d5e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: record cwltool version
run: pip install -U setuptools wheel && pip install setuptools_scm[toml] && python setup.py --version
- name: build & test cwltool_module container
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/quay-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get image tags
id: image_tags
run: |
echo -n ::set-output "name=IMAGE_TAGS::${GITHUB_REF#refs/*/}"
echo -n "IMAGE_TAGS=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: record cwltool version
run: pip install setuptools_scm[toml] wheel && python setup.py --version
run: |
pip install "setuptools>=61"
pip install setuptools_scm[toml] wheel
python setup.py --version
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -35,6 +40,7 @@ jobs:
- name: Build and publish cwltool_module image to Quay
uses: docker/build-push-action@v5
with:
context: .
file: cwltool.Dockerfile
tags: quay.io/commonwl/cwltool_module:${{ steps.image_tags.outputs.IMAGE_TAGS }},quay.io/commonwl/cwltool_module:latest
target: module
Expand All @@ -45,6 +51,7 @@ jobs:
- name: Build and publish cwltool image to Quay
uses: docker/build-push-action@v5
with:
context: .
file: cwltool.Dockerfile
tags: quay.io/commonwl/cwltool:${{ steps.image_tags.outputs.IMAGE_TAGS }},quay.io/commonwl/cwltool:latest
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit 8202d5e

Please sign in to comment.