修改部署机器

This commit is contained in:
sijinhui 2024-07-24 13:46:01 +08:00
parent 95458302f2
commit 4ff43aec6d

View File

@ -1,4 +1,4 @@
name: PRO DEPLOY TO TY name: PRO DEPLOY
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
@ -14,15 +14,15 @@ on:
jobs: jobs:
build: build:
name: build image to aly name: build image
#runs-on: ubuntu-latest #runs-on: ubuntu-latest
runs-on: self runs-on: self
steps: steps:
- name: Check out the repo - name: Check out the repo
uses: actions/checkout@v4 uses: gh.sivpn.cn/actions/checkout@v4
with: with:
clean: true clean: true
#github-server-url: 'https://gh.sivpn.cn' github-server-url: 'https://gh.sivpn.cn'
- name: build and deploy to Docker Hub - name: build and deploy to Docker Hub
run: | run: |
echo ${{ secrets.ALY_DOCKER_PASSWORD }} | docker login registry.cn-hangzhou.aliyuncs.com -u ${{ secrets.ALY_DOCKER_USERNAME }} --password-stdin echo ${{ secrets.ALY_DOCKER_PASSWORD }} | docker login registry.cn-hangzhou.aliyuncs.com -u ${{ secrets.ALY_DOCKER_USERNAME }} --password-stdin
@ -35,7 +35,7 @@ jobs:
- name: Get current date - name: Get current date
run: echo "DATE_TAG=$(date +'%Y%m%d')" >> $GITHUB_ENV run: echo "DATE_TAG=$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v4 uses: gh.sivpn.cn/docker/build-push-action@v4
with: with:
context: . context: .
push: true push: true