Skip to content

Commit

Permalink
分割流程
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Smilin committed Apr 17, 2024
1 parent d6274f0 commit b8b9ad9
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
branches: ["release"]

jobs:
checkout:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
tag:
runs-on: ubuntu-latest
outputs:
Expand All @@ -19,21 +24,25 @@ jobs:
latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1))
echo "tag=$latest_tag" >> "$GITHUB_OUTPUT"
echo "💡 Latest tag: $latest_tag"
docker:
docker-QEMU:
runs-on: ubuntu-latest
needs: tag
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
docker-login:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
docker-build:
runs-on: ubuntu-latest
needs: tag
steps:
- name: Build and push tag
env:
TAG: ${{needs.tag.outputs.latest_tag}}
Expand Down

0 comments on commit b8b9ad9

Please sign in to comment.