Skip to content

Commit

Permalink
Ensure lowercase docker image name
Browse files Browse the repository at this point in the history
  • Loading branch information
vwout committed Jan 13, 2025
1 parent 67afca0 commit 99477b1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4

- name: Create build image name
run: |
echo "IMAGENAME_LC=${IMAGENAME,,}" >> ${GITHUB_ENV}
env:
IMAGENAME: '${{ github.repository }}'

- name: Build the Docker image
run: docker build .docker/alpine/ --tag ${{ github.repository }}-test:lua-5.2
run: docker build .docker/alpine/ --tag ${IMAGENAME_LC}-test:lua-5.2

- name: Run linter
uses: addnab/docker-run-action@v3
with:
image: ${{ github.repository }}-test:lua-5.2
image: ${{ env.IMAGENAME_LC }}-test:lua-5.2
options: -v ${{ github.workspace }}:/github/workspace
run: |
echo "Static luacheck ljsocket.lua"
Expand All @@ -28,7 +34,7 @@ jobs:
- name: Bytecode verification
uses: addnab/docker-run-action@v3
with:
image: ${{ github.repository }}-test:lua-5.2
image: ${{ env.IMAGENAME_LC }}-test:lua-5.2
options: -v ${{ github.workspace }}:/github/workspace
run: |
echo "Checking JIT bytecode for ljsocket.lua"
Expand All @@ -39,7 +45,7 @@ jobs:
- name: Run unit tests
uses: addnab/docker-run-action@v3
with:
image: ${{ github.repository }}-test:lua-5.2
image: ${{ env.IMAGENAME_LC }}-test:lua-5.2
options: -v ${{ github.workspace }}:/github/workspace
run: |
lunit -i `which luajit` $(find test -name "*_test.lua")
Expand Down

0 comments on commit 99477b1

Please # to comment.