Skip to content

Commit

Permalink
Run test workflow with ghcr image
Browse files Browse the repository at this point in the history
Signed-off-by: Harry Chen <[email protected]>
  • Loading branch information
Harry-Chen committed Mar 27, 2023
1 parent 8bba180 commit 547a24f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ name: Test

on: [push, pull_request]

env:
REGISTRY: ghcr.io
NAMESPACE: tuna
IMAGE_NAME: thuthesis-test-env

jobs:

test:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
container: tunathu/thuthesis-test-env
container: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}
steps:
- uses: actions/checkout@v3
- name: Test thesis
Expand All @@ -29,7 +34,7 @@ jobs:
build_release:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/v') || contains(github.event.head_commit.message, '[zip]')"
container: tunathu/thuthesis-test-env
container: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}
steps:
- uses: actions/checkout@v3
- name: Install required packages
Expand Down

0 comments on commit 547a24f

Please sign in to comment.