File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 41
41
type=sha,format=short
42
42
type=raw,value=latest,enable={{is_default_branch}}
43
43
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
+
44
48
- name : Build and push Docker image
45
49
id : build-push
46
50
uses : docker/build-push-action@v6
@@ -77,13 +81,13 @@ jobs:
77
81
https://api.github.com/orgs/allenai/packages/container/rslearn_projects/versions
78
82
- name : Pull the latest image
79
83
run : |
80
- docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
84
+ docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
81
85
82
86
- name : Run tests with Docker Compose
83
87
run : |
84
88
docker-compose -f docker-compose.yaml up --exit-code-from tests
85
89
env :
86
- IMAGE_TAG : ${{ github.sha }}
90
+ IMAGE_TAG : ${{ env.IMAGE_TAG }}
87
91
REGISTRY : ${{ env.REGISTRY }}
88
92
IMAGE_NAME : ${{ env.IMAGE_NAME }}
89
93
Original file line number Diff line number Diff line change 1
1
beaker-py
2
2
python-dotenv
3
+ pytest
You can’t perform that action at this time.
0 commit comments