This commit is contained in:
leehk 2025-04-11 13:28:59 +08:00
parent be3e486011
commit 943b884fb3

View File

@ -30,14 +30,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Pull image
run: |
docker pull ${{ env.IMAGE }}:latest --platform linux/amd64 || true
docker pull ${{ env.IMAGE }}:latest || true
- name: Build image
run: |
docker build \
--cache-from ${{ env.IMAGE }}:latest \
--tag ${{ env.IMAGE }}:latest \
--file ./app/backend/Dockerfile.prod \
"./app/backend"
--file ./backend/Dockerfile.prod \
"./backend"
- name: Push image
run: |
docker push ${{ env.IMAGE }}:latest