Skip to content

Commit

Permalink
Cache artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
guyzsarun committed Jul 21, 2023
1 parent 5d7ea55 commit 3ee8a54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:

- name: Unit test
run: |
docker load --input /tmp/myimage.tar
docker run --rm ${{ env.TEST_TAG }} python3 -m pytest -v
test-rpm:
Expand All @@ -60,6 +61,7 @@ jobs:

- name: Unit test
run: |
docker load --input /tmp/myimage.tar
docker run --rm ${{ env.TEST_TAG }} bash -c '
mkdir -p /root/rpmbuild/SOURCES/ &&
tar -cvf /root/rpmbuild/SOURCES/xrootd-cmsjson.tar.gz . &&
Expand All @@ -81,7 +83,9 @@ jobs:
path: /tmp

- name: Tag image
run: docker tag ${{ env.TEST_TAG }} ${{ env.LATEST_TAG }}
run: |
docker load --input /tmp/myimage.tar
docker tag ${{ env.TEST_TAG }} ${{ env.LATEST_TAG }}
- name: Push to registry
run: docker push ${{ env.LATEST_TAG }}

0 comments on commit 3ee8a54

Please sign in to comment.