Skip to content

Commit c27d2de

Browse files
author
Julien Neuhart
committed
Replace github ref slug by v3 in GitHub actions
1 parent ade16d1 commit c27d2de

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/workflow.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
schedule:
1111
- cron: '0 0 * * 0'
1212

13-
1413
jobs:
1514
build_test_maybe_release:
1615
strategy:
@@ -49,7 +48,7 @@ jobs:
4948
- uses: actions/checkout@v1
5049
- name: Build and test
5150
run: |
52-
PHP_VERSION="${{ matrix.php_version }}" BRANCH="$GITHUB_REF_NAME_SLUG" VARIANT="${{ matrix.variant }}" ./build-and-test.sh
51+
PHP_VERSION="${{ matrix.php_version }}" BRANCH="v3" VARIANT="${{ matrix.variant }}" ./build-and-test.sh
5352
docker images | grep thecodingmachine/php
5453
- name: Login to DockerHub
5554
# Merge ~ push.
@@ -63,8 +62,8 @@ jobs:
6362
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
6463
run: |
6564
BRANCH_VARIANT=`echo "${{ matrix.variant }}" | sed 's/\./-/g'`
66-
docker push thecodingmachine/php:${{ matrix.php_version }}-${GITHUB_REF_NAME_SLUG}-slim-${BRANCH_VARIANT}
67-
docker push thecodingmachine/php:${{ matrix.php_version }}-${GITHUB_REF_NAME_SLUG}-${BRANCH_VARIANT}
68-
docker push thecodingmachine/php:${{ matrix.php_version }}-${GITHUB_REF_NAME_SLUG}-${BRANCH_VARIANT}-node8
69-
docker push thecodingmachine/php:${{ matrix.php_version }}-${GITHUB_REF_NAME_SLUG}-${BRANCH_VARIANT}-node10
70-
docker push thecodingmachine/php:${{ matrix.php_version }}-${GITHUB_REF_NAME_SLUG}-${BRANCH_VARIANT}-node12
65+
docker push thecodingmachine/php:${{ matrix.php_version }}-v3-slim-${BRANCH_VARIANT}
66+
docker push thecodingmachine/php:${{ matrix.php_version }}-v3-${BRANCH_VARIANT}
67+
docker push thecodingmachine/php:${{ matrix.php_version }}-v3-${BRANCH_VARIANT}-node8
68+
docker push thecodingmachine/php:${{ matrix.php_version }}-v3-${BRANCH_VARIANT}-node10
69+
docker push thecodingmachine/php:${{ matrix.php_version }}-v3-${BRANCH_VARIANT}-node12

0 commit comments

Comments
 (0)