mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 13:23:07 +01:00
more changes
This commit is contained in:
38
.github/workflows/deploy.yml
vendored
38
.github/workflows/deploy.yml
vendored
@@ -131,6 +131,33 @@ jobs:
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
- name: Create temporary containers for binary extraction
|
||||
run: |
|
||||
# Create containers for each platform without running them
|
||||
docker create --platform linux/amd64 --name dozzle-amd64 ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
||||
docker create --platform linux/arm64 --name dozzle-arm64 ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
||||
- name: Extract binaries from containers
|
||||
run: |
|
||||
# Create directories for binaries
|
||||
mkdir -p binaries/amd64 binaries/arm64
|
||||
|
||||
# Extract binaries from containers
|
||||
docker cp dozzle-amd64:/dozzle binaries/amd64/dozzle
|
||||
docker cp dozzle-arm64:/dozzle binaries/arm64/dozzle
|
||||
|
||||
# Clean up containers
|
||||
docker rm dozzle-amd64 dozzle-arm64
|
||||
|
||||
# Create archives for release
|
||||
cd binaries
|
||||
tar -czf dozzle-linux-amd64.tar.gz -C amd64 dozzle
|
||||
tar -czf dozzle-linux-arm64.tar.gz -C arm64 dozzle
|
||||
- name: Upload binaries as artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: release-binaries
|
||||
path: binaries/*.tar.gz
|
||||
retention-days: 1
|
||||
git-release:
|
||||
needs: [buildx]
|
||||
name: Github Release
|
||||
@@ -142,7 +169,18 @@ jobs:
|
||||
fetch-depth: 0
|
||||
- name: Install Node
|
||||
uses: actions/setup-node@v4
|
||||
- name: Download binaries
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: release-binaries
|
||||
path: binaries/
|
||||
- name: Release to Github
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: npx changelogithub
|
||||
- name: Upload binaries to release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: binaries/*.tar.gz
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
1
.github/workflows/dev.yml
vendored
1
.github/workflows/dev.yml
vendored
@@ -70,3 +70,4 @@ jobs:
|
||||
with:
|
||||
name: dozzle-binaries-${{ steps.meta.outputs.version }}
|
||||
path: binaries/
|
||||
retention-days: 30
|
||||
|
||||
Reference in New Issue
Block a user