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 }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Pull image - name: Pull image
run: | run: |
docker pull ${{ env.IMAGE }}:latest --platform linux/amd64 || true docker pull ${{ env.IMAGE }}:latest || true
- name: Build image - name: Build image
run: | run: |
docker build \ docker build \
--cache-from ${{ env.IMAGE }}:latest \ --cache-from ${{ env.IMAGE }}:latest \
--tag ${{ env.IMAGE }}:latest \ --tag ${{ env.IMAGE }}:latest \
--file ./app/backend/Dockerfile.prod \ --file ./backend/Dockerfile.prod \
"./app/backend" "./backend"
- name: Push image - name: Push image
run: | run: |
docker push ${{ env.IMAGE }}:latest docker push ${{ env.IMAGE }}:latest