Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
context: ./services/frontend
platforms: linux/amd64
push: true
tags: ${{ secrets.PUBLIC_ECR_REGISTRY }}/storedog/frontend:amd-latest
tags: ${{ secrets.PUBLIC_ECR_REGISTRY }}/storedog/frontend:latest

- name: Build and push ARM
uses: docker/build-push-action@v2
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,19 @@ jobs:
for i in "${IMAGES[@]}"
do
echo "$i"

docker pull "$i":latest
docker tag "$i":latest "$i":$TAG
docker push "$i":$TAG

# Since frontend is images are build to be platform specific, we need to tag and deploy accordingly
if [[ "$i" == *"storedog/frontend"* ]]; then
# deploy frontend arm image
docker pull "$i":arm-latest
docker tag "$i":arm-latest "$i":arm-$TAG
docker push "$i":arm-$TAG
fi

done

echo "All done"
Expand Down
2 changes: 1 addition & 1 deletion services/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ FROM node:16.18.0 as builder
WORKDIR /storedog-app
COPY . .
EXPOSE 3000
RUN ["yarn","install"]
RUN ["yarn","install"]