1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-11 23:31:17 -05:00

fix: push to dockerhub

This commit is contained in:
diced 2025-02-17 11:14:07 -08:00
parent 4effcc2538
commit 7aee51e81c
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1
2 changed files with 32 additions and 4 deletions

View file

@ -67,6 +67,12 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: pull images
run: |
docker pull --platform=linux/amd64 ghcr.io/diced/zipline:${{ steps.version.outputs.zipline_version }}-amd64
@ -79,9 +85,17 @@ jobs:
--amend ghcr.io/diced/zipline:${{ steps.version.outputs.zipline_version }}-arm64 && \
docker manifest create ghcr.io/diced/zipline:latest \
--amend ghcr.io/diced/zipline:${{ steps.version.outputs.zipline_version }}-amd64 \
--amend ghcr.io/diced/zipline:${{ steps.version.outputs.zipline_version }}-arm64
--amend ghcr.io/diced/zipline:${{ steps.version.outputs.zipline_version }}-arm64 && \
docker manifest create docker.io/diced/zipline:${{ steps.version.outputs.zipline_version }} \
--amend docker.io/diced/zipline:${{ steps.version.outputs.zipline_version }}-amd64 \
--amend docker.io/diced/zipline:${{ steps.version.outputs.zipline_version }}-arm64 && \
docker manifest create docker.io/diced/zipline:latest \
--amend docker.io/diced/zipline:${{ steps.version.outputs.zipline_version }}-amd64 \
--amend docker.io/diced/zipline:${{ steps.version.outputs.zipline_version }}-arm64
- name: push manifests
run: |
docker manifest push ghcr.io/diced/zipline:${{ steps.version.outputs.zipline_version }} && \
docker manifest push ghcr.io/diced/zipline:${{ steps.version.outputs.zipline_version }}
docker manifest push ghcr.io/diced/zipline:latest
docker manifest push docker.io/diced/zipline:${{ steps.version.outputs.zipline_version }}
docker manifest push docker.io/diced/zipline:latest

View file

@ -55,6 +55,12 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: pull images
run: |
docker pull --platform=linux/amd64 ghcr.io/diced/zipline:trunk-${{ steps.sha.outputs.short_sha }}-amd64
@ -71,9 +77,17 @@ jobs:
docker manifest create ghcr.io/diced/zipline:v4 \
--amend ghcr.io/diced/zipline:trunk-${{ steps.sha.outputs.short_sha }}-amd64 \
--amend ghcr.io/diced/zipline:trunk-${{ steps.sha.outputs.short_sha }}-arm64
docker manifest create ${{ secrets.DOCKERHUB_USERNAME }}/zipline:trunk \
--amend ghcr.io/diced/zipline:trunk-${{ steps.sha.outputs.short_sha }}-amd64 \
--amend ghcr.io/diced/zipline:trunk-${{ steps.sha.outputs.short_sha }}-arm64 && \
docker manifest create ${{ secrets.DOCKERHUB_USERNAME }}/zipline:trunk-${{ steps.sha.outputs.short_sha }} \
--amend ghcr.io/diced/zipline:trunk-${{ steps.sha.outputs.short_sha }}-amd64 \
--amend ghcr.io/diced/zipline:trunk-${{ steps.sha.outputs.short_sha }}-arm64 && \
- name: push manifests
run: |
docker manifest push ghcr.io/diced/zipline:trunk-${{ steps.sha.outputs.short_sha }} && \
docker manifest push ghcr.io/diced/zipline:trunk && \
docker manifest push ghcr.io/diced/zipline:trunk-${{ steps.sha.outputs.short_sha }}
docker manifest push ghcr.io/diced/zipline:trunk
docker manifest push ghcr.io/diced/zipline:v4
docker manifest push ${{ secrets.DOCKERHUB_USERNAME }}/zipline:trunk-${{ steps.sha.outputs.short_sha }}
docker manifest push ${{ secrets.DOCKERHUB_USERNAME }}/zipline:trunk