Skip to content

Commit

Permalink
more attempts at fixing the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Moros1138 committed May 2, 2024
1 parent 53efa5c commit 1c3265f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test-on-push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ jobs:
- name: Install Dependencies
run: npm install && npm run build && composer install --prefer-dist --no-interaction --no-progress && php artisan dusk:chrome-driver --detect

- name: Get Short Hash
id: vars
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT

- name: Copy environment file and set version
run: cp .env.example .env && echo "VERSION=$(git rev-parse HEAD)" >> .env && echo "VITE_VERSION=$(git rev-parse HEAD)" >> .env && export PGETINKER_VERSION="$(git rev-parse HEAD)"
run: cp .env.example .env && echo "VERSION=${{ steps.vars.outputs.sha }}" >> .env && echo "VITE_VERSION=${{ steps.vars.outputs.sha }}" >> .env

- name: Build Library Objects
run: bash build-libs.sh
Expand Down Expand Up @@ -58,6 +62,6 @@ jobs:
with:
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/pgetinker:${{ GITHUB_SHA }}
${{ secrets.DOCKERHUB_USERNAME }}/pgetinker:${{ steps.vars.outputs.sha }}
${{ secrets.DOCKERHUB_USERNAME }}/pgetinker:latest

0 comments on commit 1c3265f

Please sign in to comment.