-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove matrix builds with just one element
- Loading branch information
Showing
4 changed files
with
28 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,27 +20,23 @@ jobs: | |
build-package: | ||
name: "Build & verify package" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
directory: | ||
- "conda-store-server" | ||
defaults: | ||
run: | ||
working-directory: ${{ matrix.directory }} | ||
working-directory: conda-store-server | ||
steps: | ||
- name: "Checkout Repository 🛎" | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- run: echo "Running on ${{ matrix.directory }}" | ||
- run: echo "Running on conda-store-server" | ||
|
||
- name: "Build and check package - ${{ matrix.directory }} 📦" | ||
- name: "Build and check package - conda-store-server 📦" | ||
uses: hynek/build-and-inspect-python-package@v2 | ||
id: baipp | ||
with: | ||
path: ${{ matrix.directory }} | ||
upload-name-suffix: "-${{ matrix.directory }}" | ||
path: conda-store-server | ||
upload-name-suffix: "-conda-store-server" | ||
attest-build-provenance-github: "true" | ||
|
||
- run: echo Packages can be found at ${{ steps.baipp.outputs.dist }} and in artifact ${{ steps.baipp.outputs.artifact-name }} | ||
|
@@ -54,16 +50,11 @@ jobs: | |
if: github.repository_owner == 'conda-incubator' && github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
strategy: | ||
matrix: | ||
directory: | ||
- "conda-store-server" | ||
|
||
steps: | ||
- name: "Download build artefacts 📥" | ||
uses: actions/[email protected] | ||
with: | ||
name: Packages-${{ matrix.directory }} | ||
name: Packages-conda-store-server | ||
path: dist | ||
|
||
- run: ls -lR dist/ | ||
|
@@ -84,19 +75,15 @@ jobs: | |
needs: build-package | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
strategy: | ||
matrix: | ||
directory: | ||
- "conda-store-server" | ||
defaults: | ||
run: | ||
working-directory: ${{ matrix.directory }} | ||
working-directory: conda-store-server | ||
|
||
steps: | ||
- name: "Download build artefacts 📥" | ||
uses: actions/[email protected] | ||
with: | ||
name: Packages-${{ matrix.directory }} | ||
name: Packages-conda-store-server | ||
path: dist | ||
|
||
- name: "Upload to PyPI 🚀" | ||
|
@@ -111,10 +98,6 @@ jobs: | |
needs: release-pypi | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
strategy: | ||
matrix: | ||
docker-image: | ||
- conda-store-server | ||
steps: | ||
- name: "Checkout Repository 🛎" | ||
uses: actions/checkout@v4 | ||
|
@@ -125,7 +108,7 @@ jobs: | |
- name: "Copy .dockerignore" | ||
run: | | ||
cp .dockerignore ${{ matrix.docker-image }}/.dockerignore | ||
cp .dockerignore conda-store-server/.dockerignore | ||
shell: bash | ||
|
||
- name: "Retrieve secret from Vault 🗝" | ||
|
@@ -162,8 +145,8 @@ jobs: | |
uses: docker/metadata-action@v5 | ||
with: | ||
images: | | ||
quansight/${{ matrix.docker-image }} | ||
quay.io/quansight/${{ matrix.docker-image }} | ||
quansight/conda-store-server | ||
quay.io/quansight/conda-store-server | ||
tags: | | ||
type=ref,event=tag | ||
type=ref,event=branch | ||
|
@@ -172,9 +155,9 @@ jobs: | |
- name: "Publish Docker image 🚀" | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: "${{ matrix.docker-image }}" | ||
context: "conda-store-server" | ||
target: "prod" | ||
file: "${{ matrix.docker-image }}/Dockerfile" | ||
file: "conda-store-server/Dockerfile" | ||
build-args: | | ||
RELEASE_VERSION=${{github.ref_name}} | ||
python_version=${{ env.PYTHON_VERSION_DEFAULT }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters