Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
timglabisch committed Aug 24, 2023
1 parent a94040e commit 110e06f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
- name: Build and push amd
run: |
cp target/x86_64-unknown-linux-musl/release/easypwned easypwned
cp target/x86_64-unknown-linux-musl/release/easypwned_haveibeenpwned_downloader easypwned_haveibeenpwned_downloader
docker buildx build --platform linux/amd64 -t easybill/easypwned:latest_amd64 --push .
cp target/aarch64-unknown-linux-musl/release/easypwned easypwned
cp target/aarch64-unknown-linux-musl/release/easypwned_haveibeenpwned_downloader easypwned_haveibeenpwned_downloader
docker buildx build --platform linux/arm64 -t easybill/easypwned:latest_arm64 --push .
docker manifest create easybill/easypwned:latest easybill/easypwned:latest_amd64 easybill/easypwned:latest_arm64
docker manifest push easybill/easypwned:latest
- name: Build and push release
docker buildx build --platform linux/arm64 -t easybill/easypwned:${{github.ref_name}}_arm64 --push .
- name: Build and push arm
run: |
cp target/aarch64-unknown-linux-musl/release/easypwned easypwned
cp target/aarch64-unknown-linux-musl/release/easypwned_haveibeenpwned_downloader easypwned_haveibeenpwned_downloader
docker buildx build --platform linux/arm64 -t easybill/easypwned:${{github.ref_name}}_arm64 --push .
- name: Build and Push manifest
if: startsWith(github.ref, 'refs/tags/')
run: |
docker manifest create easybill/easypwned:${{ steps.vars.outputs.tag }} easybill/easypwned:latest_amd64 easybill/easypwned:latest_arm64
docker manifest create easybill/easypwned:${{ steps.vars.outputs.tag }} easybill/easypwned:${{github.ref_name}}_amd64 easybill/easypwned:${{github.ref_name}}_arm64
docker manifest push easybill/easypwned:${{ steps.vars.outputs.tag }}
- name: Release Build
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 110e06f

Please sign in to comment.