Skip to content

Commit

Permalink
adding run number tag to the images
Browse files Browse the repository at this point in the history
  • Loading branch information
vacaramin committed Dec 6, 2023
1 parent 02d0d2f commit a74fd71
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up environment
run: |
echo "PORT=${{ secrets.PORT }}" >> backend/.env
Expand All @@ -31,12 +31,18 @@ jobs:

- name: Build and Push Docker Compose for Backend
run: |
version="v1.$GITHUB_RUN_NUMBER"
docker-compose -f docker-compose-ci.yaml build backend
docker tag virtual-horizon_backend:latest vacaramin/virtual-horizon-backend:$version
docker tag virtual-horizon_backend:latest vacaramin/virtual-horizon-backend:latest
docker push vacaramin/virtual-horizon-backend:$version
docker push vacaramin/virtual-horizon-backend:latest
- name: Build and Push Docker Compose for Frontend
run: |
version="v1.$GITHUB_RUN_NUMBER"
docker-compose -f docker-compose-ci.yaml build frontend
docker tag virtual-horizon_frontend:latest vacaramin/virtual-horizon-frontend:$version
docker tag virtual-horizon_frontend:latest vacaramin/virtual-horizon-frontend:latest
docker push vacaramin/virtual-horizon-frontend:latest
docker push vacaramin/virtual-horizon-frontend:$version
docker push vacaramin/virtual-horizon-frontend:latest

0 comments on commit a74fd71

Please sign in to comment.