Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yajuhua committed Apr 6, 2024
1 parent 0ab10c5 commit 3d5c450
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build And Push Latest
name: v2 Build And Push Latest
on: workflow_dispatch

jobs:
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
run: |
docker build . --file Dockerfile --tag yajuhua/podcast2:amd64
docker push yajuhua/podcast2:amd64
build-arm64:
permissions: write-all
runs-on: ubuntu-latest
Expand Down Expand Up @@ -107,4 +107,4 @@ jobs:
docker manifest create yajuhua/podcast2 yajuhua/podcast2:arm64 yajuhua/podcast2:amd64
- name: push manifest
run: |
docker manifest push yajuhua/podcast2
docker manifest push yajuhua/podcast2
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build And Push Latest
name: v2 Test Images
on: workflow_dispatch

jobs:
Expand Down Expand Up @@ -26,6 +26,7 @@ jobs:
build-amd64:
permissions: write-all
runs-on: ubuntu-latest
needs: build-jar
steps:
# 设置 QEMU, 后面 docker buildx 依赖此.
- name: Set up QEMU
Expand Down Expand Up @@ -57,6 +58,7 @@ jobs:
build-arm64:
permissions: write-all
runs-on: ubuntu-latest
needs: build-jar
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
Expand Down Expand Up @@ -97,6 +99,7 @@ jobs:
push-docker-hub:
permissions: write-all
runs-on: ubuntu-latest
needs: [build-arm64,build-amd64]
steps:
- name: pull amd4 and arm64 docker images
run: |
Expand All @@ -107,4 +110,4 @@ jobs:
docker manifest create yajuhua/podcast2:beta-$(date +%Y-%m-%d) yajuhua/podcast2:arm64-$(date +test-%Y-%m-%d) yajuhua/podcast2:amd64-$(date +test-%Y-%m-%d)
- name: push manifest
run: |
docker manifest push yajuhua/podcast2:beta
docker manifest push yajuhua/podcast2:beta

0 comments on commit 3d5c450

Please sign in to comment.