Skip to content

Commit 47f594a

Browse files
committed
fix github acitons
1 parent edf8190 commit 47f594a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/build_test.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
type=sha,format=short
4242
type=raw,value=latest,enable={{is_default_branch}}
4343
44+
- name: Extract image tag
45+
id: extract-tag
46+
run: echo "IMAGE_TAG=$(echo '${{ steps.meta.outputs.tags }}' | cut -d',' -f1)" >> $GITHUB_ENV
47+
4448
- name: Build and push Docker image
4549
id: build-push
4650
uses: docker/build-push-action@v6
@@ -77,13 +81,13 @@ jobs:
7781
https://api.github.com/orgs/allenai/packages/container/rslearn_projects/versions
7882
- name: Pull the latest image
7983
run: |
80-
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
84+
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
8185
8286
- name: Run tests with Docker Compose
8387
run: |
8488
docker-compose -f docker-compose.yaml up --exit-code-from tests
8589
env:
86-
IMAGE_TAG: ${{ github.sha }}
90+
IMAGE_TAG: ${{ env.IMAGE_TAG }}
8791
REGISTRY: ${{ env.REGISTRY }}
8892
IMAGE_NAME: ${{ env.IMAGE_NAME }}
8993

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
beaker-py
22
python-dotenv
3+
pytest

0 commit comments

Comments
 (0)