Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks committed Dec 10, 2024
2 parents e5deff9 + 5c29738 commit 537a688
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build and Publish Docker Images

on:
push:
paths:
- frontend/**
- backend/**
# paths:
# - frontend/**
# - backend/**
branches:
- master
- dev
Expand Down Expand Up @@ -44,8 +44,7 @@ jobs:
echo "Unknown branch: ${{ github.ref_name }}"
exit 1
fi
echo "branch_tag=${{ env.tag }}" >> $GITHUB_ENV
- name: Build and push frontend Docker image to GHCR
uses: docker/build-push-action@v3
with:
Expand All @@ -55,7 +54,7 @@ jobs:
COMMIT_HASH=${{ env.hash }}
push: true
tags: |
ghcr.io/loudbooks/pastebook-frontend:${{ env.branch_tag }}
ghcr.io/loudbooks/pastebook-frontend:${{ env.tag }}
ghcr.io/loudbooks/pastebook-frontend:${{ env.hash }}
- name: Build and push backend Docker image to GHCR
Expand All @@ -65,7 +64,7 @@ jobs:
file: ./backend/Dockerfile
push: true
tags: |
ghcr.io/loudbooks/pastebook-backend:${{ env.branch_tag }}
ghcr.io/loudbooks/pastebook-backend:${{ env.tag }}
ghcr.io/loudbooks/pastebook-backend:${{ env.hash }}
- name: Log in to Docker Hub
Expand All @@ -83,7 +82,7 @@ jobs:
file: ./frontend/Dockerfile
push: true
tags: |
${{ secrets.DOCKER_USERNAME }}/pastebook-frontend:${{ env.branch_tag }}
${{ secrets.DOCKER_USERNAME }}/pastebook-frontend:${{ env.tag }}
${{ secrets.DOCKER_USERNAME }}/pastebook-frontend:${{ env.hash }}
- name: Build and push backend Docker image to Docker Hub
Expand All @@ -93,5 +92,5 @@ jobs:
file: ./backend/Dockerfile
push: true
tags: |
${{ secrets.DOCKER_USERNAME }}/pastebook-backend:${{ env.branch_tag }}
${{ secrets.DOCKER_USERNAME }}/pastebook-backend:${{ env.tag }}
${{ secrets.DOCKER_USERNAME }}/pastebook-backend:${{ env.hash }}

0 comments on commit 537a688

Please sign in to comment.