Skip to content

Commit 6168c27

Browse files
authored
Add GitHub Actions workflow to test GHCR container
1 parent 11beeb2 commit 6168c27

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test GHCR Container
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test-container:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Log in to GHCR
16+
uses: docker/login-action@v3
17+
with:
18+
registry: ghcr.io
19+
username: ${{ github.actor }}
20+
password: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- name: Pull container from GHCR
23+
run: |
24+
docker pull ghcr.io/lewisl23/presto-0.7.4:latest
25+
26+
- name: Test container runs
27+
run: |
28+
docker run --rm ghcr.io/lewisl23/presto-0.7.4:latest AssemblePairs.py --help
29+
echo "Container works"
30+

0 commit comments

Comments
 (0)