Skip to content

Commit

Permalink
Fixed run command to us |
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronaldo Macapobre committed Aug 21, 2024
1 parent 6ce6547 commit 8278c22
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/app-vue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,14 @@ jobs:
echo "::set-output name=SHORT_SHA::$(git rev-parse --short HEAD)"
echo "Short SHA: $SHORT_SHA"
- name: Docker Build Image
- name: Build Docker Image
working-directory: ${{env.WORKING_DIRECTORY}}/../
run: |
docker build --tag web-runtime -f docker/nginx-runtime/Dockerfile ./docker/nginx-runtime/
cd web
docker build --tag web-artifacts -f Dockerfile.node . --build-arg WEB_BASE_HREF=/
echo "DONE!!! docker build --tag ss-web-artifacts"
docker image ls
cd ..
docker build --tag ${{ env.IMAGE_NAME }} -f docker/vue-on-nginx/Dockerfile ./docker/vue-on-nginx/
docker image ls
- name: Log in to the GHCR
uses: docker/login-action@v3
Expand All @@ -74,7 +71,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Push Image to GCHR
- name: Push Image to GCHR
run: |
docker tag ${{ env.IMAGE_NAME }} ${{ env.GITHUB_IMAGE_REPO }}${{ env.IMAGE_NAME }}:dev-${{ steps.short_sha.outputs.SHORT_SHA }}
output=$(docker push ${{ env.GITHUB_IMAGE_REPO }}${{ env.IMAGE_NAME }}:dev-${{ steps.short_sha.outputs.SHORT_SHA }})
Expand All @@ -83,6 +80,7 @@ jobs:
echo "::set-output name=digest::$digest"
deploy2dev:
name: Deploy to DEV
needs: build
env:
ENVIRONMENT: dev
Expand All @@ -93,5 +91,5 @@ jobs:

steps:
- name: Publish image to AWS ECR
run: /
run: |
echo ${{ needs.build.outputs.digest }}

0 comments on commit 8278c22

Please sign in to comment.