Update action script

This commit is contained in:
chamomind 2023-12-02 13:34:59 +07:00 committed by Methapon2001
parent 9e42d9d574
commit 2525b7d28a
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
2 changed files with 4 additions and 4 deletions

View file

@ -45,7 +45,7 @@ jobs:
- name: Build docker image - name: Build docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
context: ./Services/server context: ./Services
load: true load: true
# cache-from: type=gha # cache-from: type=gha
# cache-to: type=gha,mode=max # cache-to: type=gha,mode=max

View file

@ -58,7 +58,7 @@ jobs:
- name: Build and push docker image - name: Build and push docker image
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
with: with:
context: ./Services/server context: ./Services
platforms: linux/amd64 platforms: linux/amd64
push: true push: true
tags: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:${{ steps.gen_ver.outputs.image_ver }},${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest tags: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:${{ steps.gen_ver.outputs.image_ver }},${{env.REGISTRY}}/${{env.IMAGE_NAME}}:latest
@ -82,8 +82,8 @@ jobs:
port: 10100 port: 10100
script: | script: |
cd "${{env.COMPOSE_PATH}}" cd "${{env.COMPOSE_PATH}}"
docker-compose pull docker compose pull
docker-compose up -d docker compose up -d
echo "${{ steps.gen_ver.outputs.image_ver }}"> success echo "${{ steps.gen_ver.outputs.image_ver }}"> success