Skip to content

Commit

Permalink
Merge pull request #48 from pasindu07/php-7.4-ubuntu-20.04
Browse files Browse the repository at this point in the history
FIxed issues in workflow
  • Loading branch information
ChanakaR authored Nov 7, 2024
2 parents aac0d82 + 6c60fe3 commit 4c2c921
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ php-7.4-ubuntu-20.04 ]
schedule:
- cron: '30 0 * * MON' # 0030 in UTC, 0600 in IST
workflow_dispatch:

env:
REGISTRY: hub.docker.com
Expand Down Expand Up @@ -34,7 +35,7 @@ jobs:
run: composer install

- name: Build docker image
run: docker build -t ${{ env.DOCKER_HUB_REPO }}:${{ env.TAG_NAME }} --build-arg REDHAT_USERNAME=${{ secrets.REDHAT_USERNAME }} --build-arg REDHAT_PASSWORD=${{ secrets.REDHAT_PASSWORD }} docker-image
run: docker build -t ${{ env.DOCKER_HUB_REPO }}:${{ env.TAG_NAME }} docker-image

- name: Spin up the container
run: |
Expand All @@ -47,7 +48,7 @@ jobs:
php vendor/bin/codecept run unit
- name: Get installed php version
run: echo "VERSION_TAG_NAME=dev-php-$(docker exec dev_web php -r 'echo PHP_VERSION;')-ubuntu-20.04" >> $GITHUB_ENV
run: echo "VERSION_TAG_NAME=dev-php-$(docker exec dev_web php -r 'echo explode("-", PHP_VERSION)[0];')-ubuntu-20.04" >> $GITHUB_ENV

- name: New image with a version tag & latest tag
run: |
Expand Down

0 comments on commit 4c2c921

Please sign in to comment.