Skip to content

Commit 4d57f7a

Browse files
committed
add other manifest conditions
1 parent 4e2b277 commit 4d57f7a

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

.github/workflows/ci.yml

+35-1
Original file line numberDiff line numberDiff line change
@@ -899,13 +899,47 @@ jobs:
899899
gecho "docker_manifests:"
900900
gecho " - name_template: ghcr.io/${{ github.repository }}:{{ .Tag }}"
901901
gecho " image_templates:"
902-
if [[ "${{ inputs.release-arch-amd64 }}" == "true" ]]; then
902+
if [[ "${{ inputs.release-arch-arm64 }}" == "true" ]]; then
903903
gecho " - ghcr.io/${{ github.repository }}:{{ .Tag }}-amd64"
904904
fi
905905
if [[ "${{ inputs.release-arch-arm64 }}" == "true" ]]; then
906906
gecho " - ghcr.io/${{ github.repository }}:{{ .Tag }-arm64}"
907907
fi
908908
909+
if [[ "${{ inputs.release-docker-major }}" == "true" ]]; then
910+
gecho " - name_template: ghcr.io/${{ github.repository }}:v{{ .Major }}"
911+
gecho " image_templates:"
912+
if [[ "${{ inputs.release-arch-amd64 }}" == "true" ]]; then
913+
gecho " - ghcr.io/${{ github.repository }}:v{{ .Major }}-amd64}"
914+
fi
915+
if [[ "${{ inputs.release-arch-arm64 }}" == "true" ]]; then
916+
gecho " - ghcr.io/${{ github.repository }}:v{{ .Major }}-arm64}"
917+
fi
918+
fi
919+
920+
if [[ "${{ inputs.release-docker-minor }}" == "true" ]]; then
921+
gecho " - name_template: ghcr.io/${{ github.repository }}:v{{ .Major }}.{{ .Minor }}"
922+
gecho " image_templates:"
923+
if [[ "${{ inputs.release-arch-amd64 }}" == "true" ]]; then
924+
gecho " - ghcr.io/${{ github.repository }}:v{{ .Major }}.{{ .Minor }}-amd64}"
925+
fi
926+
if [[ "${{ inputs.release-arch-arm64 }}" == "true" ]]; then
927+
gecho " - ghcr.io/${{ github.repository }}:v{{ .Major }}.{{ .Minor }}-arm64}"
928+
fi
929+
fi
930+
931+
if [[ "${{ inputs.release-docker-latest }}" == "true" ]]; then
932+
gecho " - name_template: ghcr.io/${{ github.repository }}:latest"
933+
gecho " image_templates:"
934+
if [[ "${{ inputs.release-arch-amd64 }}" == "true" ]]; then
935+
gecho " - ghcr.io/${{ github.repository }}:latest-amd64}"
936+
fi
937+
if [[ "${{ inputs.release-arch-arm64 }}" == "true" ]]; then
938+
gecho " - ghcr.io/${{ github.repository }}:latest-arm64}"
939+
fi
940+
fi
941+
942+
909943
- name: Determine project license(s)
910944
if: |
911945
inputs.release-custom-file == false &&

0 commit comments

Comments
 (0)