Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit63cf6cb

Browse files
authored
.github: Revert release.yml (#41)
* Revert ".github: Fix manifest step"This reverts commitfb11d88.* Revert ".github: Fix manifest issue"This reverts commit21e44f9.* .github: Revert release.yml
1 parentfb11d88 commit63cf6cb

File tree

1 file changed

+7
-69
lines changed

1 file changed

+7
-69
lines changed

‎.github/workflows/release.yml

Lines changed: 7 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -15,50 +15,22 @@ on:
1515
run-name:"Release: ${{ inputs.package }}"
1616

1717
jobs:
18-
generate-version:
18+
release-to-ghcr:
1919
concurrency:
2020
group:release-to-ghcr-${{ inputs.package }}
2121
cancel-in-progress:false
2222
if:contains('["brettcannon", "corona10", "erlend-aasland"]', github.actor)
2323
runs-on:ubuntu-latest
24-
outputs:
25-
builddate:${{ steps.version.outputs.builddate }}
2624
steps:
2725
# Checkout push-to-registry action github repository
2826
-name:Set Calver Date
2927
run:|
3028
echo "builddate=$(date +'%Y.%m.%d')" >> $GITHUB_OUTPUT
3129
id:version
32-
33-
build_amd64:
34-
needs:generate-version
35-
runs-on:ubuntu-latest
36-
steps:
37-
-name:Checkout
38-
uses:actions/checkout@v4
39-
-name:Set up Docker Buildx
40-
uses:docker/setup-buildx-action@v3
41-
-name:Login To GHCR
42-
uses:docker/login-action@v3
43-
with:
44-
registry:ghcr.io
45-
username:${{ github.actor }}
46-
password:${{ secrets.GITHUB_TOKEN }}
47-
-name:Build and push
48-
uses:docker/build-push-action@v6
49-
with:
50-
context:./${{ inputs.package }}
51-
platforms:linux/amd64
52-
push:true
53-
tags:|
54-
ghcr.io/python/${{ inputs.package }}:${{ needs.generate-version.outputs.builddate }}.${{ github.run_id }}-amd64
55-
56-
build_arm64:
57-
needs:generate-version
58-
runs-on:ubuntu-24.04-arm
59-
steps:
60-
-name:Checkout
30+
-name:Checkout Push to Registry action
6131
uses:actions/checkout@v4
32+
-name:Set up QEMU
33+
uses:docker/setup-qemu-action@v3
6234
-name:Set up Docker Buildx
6335
uses:docker/setup-buildx-action@v3
6436
-name:Login To GHCR
@@ -71,42 +43,8 @@ jobs:
7143
uses:docker/build-push-action@v6
7244
with:
7345
context:./${{ inputs.package }}
74-
platforms:linux/arm64
46+
platforms:linux/amd64,linux/arm64
7547
push:true
7648
tags:|
77-
ghcr.io/python/${{ inputs.package }}:${{ needs.generate-version.outputs.builddate }}.${{ github.run_id }}-arm64
78-
79-
set_manifest:
80-
needs:[generate-version, build_amd64, build_arm64]
81-
runs-on:ubuntu-latest
82-
steps:
83-
-name:Checkout
84-
uses:actions/checkout@v4
85-
-name:Set up Docker Buildx
86-
uses:docker/setup-buildx-action@v3
87-
-name:Login To GHCR
88-
uses:docker/login-action@v3
89-
with:
90-
registry:ghcr.io
91-
username:${{ github.actor }}
92-
password:${{ secrets.GITHUB_TOKEN }}
93-
-name:Pull images
94-
run:|
95-
docker pull ghcr.io/python/${{ inputs.package }}:${{ needs.generate-version.outputs.builddate }}.${{ github.run_id }}-amd64
96-
docker tag ghcr.io/python/${{ inputs.package }}:${{ needs.generate-version.outputs.builddate }}.${{ github.run_id }}-amd64 ghcr.io/python/${{ inputs.package }}:amd64
97-
98-
docker pull ghcr.io/python/${{ inputs.package }}:${{ needs.generate-version.outputs.builddate }}.${{ github.run_id }}-arm64
99-
docker tag ghcr.io/python/${{ inputs.package }}:${{ needs.generate-version.outputs.builddate }}.${{ github.run_id }}-arm64 ghcr.io/python/${{ inputs.package }}:arm64
100-
101-
-name:Set manifest
102-
run:|
103-
docker manifest create ghcr.io/python/${{ inputs.package }}:${{ needs.generate-version.outputs.builddate }}.${{ github.run_id }} \
104-
ghcr.io/python/${{ inputs.package }}:amd64 \
105-
ghcr.io/python/${{ inputs.package }}:arm64
106-
107-
docker manifest create ghcr.io/python/${{ inputs.package }}:latest \
108-
ghcr.io/python/${{ inputs.package }}:amd64 \
109-
ghcr.io/python/${{ inputs.package }}:arm64
110-
111-
docker manifest push ghcr.io/python/${{ inputs.package }}:latest
112-
docker manifest push ghcr.io/python/${{ inputs.package }}:${{ needs.generate-version.outputs.builddate }}.${{ github.run_id }}
49+
ghcr.io/python/${{ inputs.package }}:${{ steps.version.outputs.builddate }}.${{ github.run_id }}
50+
ghcr.io/python/${{ inputs.package }}:latest

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp