Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Jan 26, 2024
1 parent bb85f72 commit dbf4e16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: |
docker pull ${{ env.REGISTRY }}/${{ github.actor }}/php${{ matrix.php }}:${{ env.TAG }}
docker pull ${{ env.REGISTRY }}/${{ github.actor }}/belongs-to-through/php${{ matrix.php }}:${{ env.TAG }}
continue-on-error: true
env:
TAG: ${{ hashFiles(format('.docker/php{0}.Dockerfile', matrix.php)) }}
id: pull
- run: |
docker compose build php${{ matrix.php }}
docker tag belongs-to-through-php${{ matrix.php }} ${{ env.REGISTRY }}/${{ github.actor }}/php${{ matrix.php }}:${{ env.TAG }}
docker push ${{ env.REGISTRY }}/${{ github.actor }}/php${{ matrix.php }}:${{ env.TAG }}
docker tag belongs-to-through-php${{ matrix.php }} ${{ env.REGISTRY }}/${{ github.actor }}/belongs-to-through/php${{ matrix.php }}:${{ env.TAG }}
docker push ${{ env.REGISTRY }}/${{ github.actor }}/belongs-to-through/php${{ matrix.php }}:${{ env.TAG }}
env:
TAG: ${{ hashFiles(format('.docker/php{0}.Dockerfile', matrix.php)) }}
if: steps.pull.outcome != 'success'
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ version: '3.8'

services:
php8.1:
image: ghcr.io/staudenmeir/php8.1:${TAG:-}
image: ghcr.io/staudenmeir/belongs-to-through/php8.1:${TAG:-}
working_dir: /var/www/html
volumes:
- .:/var/www/html:delegated
php8.2:
image: ghcr.io/staudenmeir/php8.2:${TAG:-}
image: ghcr.io/staudenmeir/belongs-to-through/php8.2:${TAG:-}
working_dir: /var/www/html
volumes:
- .:/var/www/html:delegated
php8.3:
image: ghcr.io/staudenmeir/php8.3:${TAG:-}
image: ghcr.io/staudenmeir/belongs-to-through/php8.3:${TAG:-}
working_dir: /var/www/html
volumes:
- .:/var/www/html:delegated
Expand Down

0 comments on commit dbf4e16

Please sign in to comment.