init
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled Details

This commit is contained in:
AaronHux 2024-05-25 15:29:06 +08:00
parent 52a96ec652
commit bf41112f27
1 changed files with 9 additions and 7 deletions

View File

@ -16,8 +16,10 @@ jobs:
steps:
- name: Build & Deploy
run: |
cd /opt/workspace/TOPVERSE_Official
git pull
rm -rf /opt/workspace/website
mkdir -p /opt/workspace/website
git clone https://github.com/huxin/website.git /opt/workspace/website
cd /opt/workspace/website
docker build -t website-v1:latest "."
docker stop website-v1 || true
docker rm -f website-v1 || true
@ -26,8 +28,8 @@ jobs:
docker ps
# - name: Build
# run:
# run:
# - name: Deploy
# run: |
@ -52,7 +54,7 @@ jobs:
# id: meta
# run: |
# echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
# echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
# echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
# - name: Build and push
# uses: docker/build-push-action@v5
@ -61,10 +63,10 @@ jobs:
# file: ./Dockerfile
# platforms: |
# linux/amd64
# linux/arm64
# linux/arm64
# push: true
# tags: |
# ${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}
# ${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}
# - run: docker build -t website-v1:latest "."
# - run: docker rm -f website-v1 || true