diff --git a/.github/workflows/build_image.yml b/.github/workflows/build_image.yml index bc2ea14..6fd2da5 100644 --- a/.github/workflows/build_image.yml +++ b/.github/workflows/build_image.yml @@ -2,7 +2,7 @@ name: build_image on: push: - branches: ["main"] + branches: ["iotex-stg"] tags: ["v*.*.*"] env: @@ -59,7 +59,6 @@ jobs: with: platforms: linux/amd64 context: . - file: ./Dockerfile push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta-web.outputs.tags }} labels: ${{ steps.meta-web.outputs.labels }} @@ -75,9 +74,8 @@ jobs: id: build-and-push-nginx uses: docker/build-push-action@v4 with: - context: . + context: ./nginx platforms: linux/amd64 - file: ./nginx/Dockerfile push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta-nginx.outputs.tags }} labels: ${{ steps.meta-nginx.outputs.labels }} diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 3711da8..2d3abe8 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -6,7 +6,7 @@ RUN openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes -keyout /etc/ng COPY nginx.conf /etc/nginx/nginx.conf -COPY version.txt /usr/share/nginx/html/version.txt +#COPY version.txt /usr/share/nginx/html/version.txt STOPSIGNAL SIGTERM