ci: Attempting multi-platform builds for docker [skip ci]
This commit is contained in:
@@ -124,8 +124,8 @@ jobs:
|
||||
run: |
|
||||
# set the right strip executable
|
||||
STRIP="strip";
|
||||
case ${{ matrix.job.target }} in
|
||||
arm*-linux-*) STRIP="arm-linux-gnueabihf-strip" ;;
|
||||
case ${{ matrix.job.target }} in
|
||||
arm*-linux-*) STRIP="arm-linux-gnueabihf-strip" ;;
|
||||
aarch64-*-linux-*) STRIP="aarch64-linux-gnu-strip" ;;
|
||||
esac;
|
||||
cd target/${{ matrix.job.target }}/release
|
||||
@@ -235,6 +235,11 @@ jobs:
|
||||
run: |
|
||||
git push origin --follow-tags
|
||||
|
||||
- name: Fetch updated repository
|
||||
run: |
|
||||
git fetch origin
|
||||
git reset --hard origin/main
|
||||
|
||||
- name: Create a GitHub Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
env:
|
||||
@@ -282,11 +287,10 @@ jobs:
|
||||
name: Publishing Docker image to Docker Hub
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get release artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
name: artifacts
|
||||
path: artifacts
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Set version variable
|
||||
run: |
|
||||
@@ -297,6 +301,12 @@ jobs:
|
||||
run: |
|
||||
echo "Release version: ${{ env.version }}"
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -306,15 +316,11 @@ jobs:
|
||||
- name: Push to Docker Hub
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
tags: darkalex17/managarr:latest, darkalex17/managarr:x86_64, darkalex17/managarr:x86_64-${{ env.version }}
|
||||
push: true
|
||||
|
||||
- name: Push to Docker Hub
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
file: Dockerfile.arm64
|
||||
tags: darkalex17/managarr:arm64, darkalex17/managarr:arm64-${{ env.version }}
|
||||
context: .
|
||||
file: Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: darkalex17/testing:latest, darkalex17/testing:${{ env.version }}
|
||||
|
||||
publish-crate:
|
||||
needs: publish-github-release
|
||||
|
||||
Reference in New Issue
Block a user