Skip to content

Commit

Permalink
Try using build arg for php version
Browse files Browse the repository at this point in the history
  • Loading branch information
Firehed committed Jan 20, 2021
1 parent 51b24e3 commit 6e026f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/alpine.dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
FROM php:8-cli-alpine
ARG PHP_VERSION
FROM php:{$PHP_VERSION}-cli-alpine
COPY . .
3 changes: 1 addition & 2 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ jobs:

- name: "Build Alpine image"
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
# todo: image per tag
run: docker build --file .github/workflows/alpine.dockerfile --tag testenv .
run: docker build --file .github/workflows/alpine.dockerfile --build-arg=${{ matrix.php-version }} --tag testenv .

- name: "Test under Alpine"
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
Expand Down

0 comments on commit 6e026f5

Please sign in to comment.