Skip to content

Commit 856829b

Browse files
authored
always run tests even if docker images don't rebuild (#346)
1 parent 6da165b commit 856829b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/continuous-integration.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,14 @@ jobs:
4040
[[ "${{ steps.filter.outputs.pgstac }}" == "true" ]] && buildpg=true || ref=main;
4141
echo "pgtag=${{ env.REGISTRY }}/stac-utils/pgstac-postgres:$ref" >>$GITHUB_OUTPUT;
4242
echo "buildpg=$buildpg" >>$GITHUB_OUTPUT;
43-
buildy=false;
43+
buildpy=false;
4444
[[ "${{ steps.filter.outputs.pypgstac }}" == "true" ]] && buildpy=true || ref=main;
4545
echo "pytag=${{ env.REGISTRY }}/stac-utils/pgstac-pyrust:$ref" >>$GITHUB_OUTPUT;
46-
echo "buildpy=$buildpg" >>$GITHUB_OUTPUT;
46+
echo "buildpy=$buildpy" >>$GITHUB_OUTPUT;
4747
4848
# This builds a base postgres image that has everything installed to be able to run pgstac. This image does not have pgstac itself installed.
4949
buildpg:
5050
name: Build and push base postgres image
51-
if: ${{ needs.changes.outputs.buildpgdocker == 'true' }}
5251
runs-on: ubuntu-latest
5352
needs: [changes]
5453
steps:
@@ -61,6 +60,7 @@ jobs:
6160
username: ${{ github.actor }}
6261
password: ${{ secrets.GITHUB_TOKEN }}
6362
- name: Build and Push Base Postgres
63+
if: ${{ needs.changes.outputs.buildpgdocker == 'true' }}
6464
uses: docker/build-push-action@v4
6565
with:
6666
platforms: linux/amd64,linux/arm64
@@ -74,7 +74,6 @@ jobs:
7474

7575
buildpyrust:
7676
name: Build and push base pyrust
77-
if: ${{ needs.changes.outputs.buildpyrustdocker == 'true' }}
7877
runs-on: ubuntu-latest
7978
needs: [changes]
8079
steps:
@@ -87,6 +86,7 @@ jobs:
8786
username: ${{ github.actor }}
8887
password: ${{ secrets.GITHUB_TOKEN }}
8988
- name: Build and Push Base pyrust
89+
if: ${{ needs.changes.outputs.buildpyrustdocker == 'true' }}
9090
uses: docker/build-push-action@v4
9191
with:
9292
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)