File tree Expand file tree Collapse file tree 2 files changed +25
-69
lines changed Expand file tree Collapse file tree 2 files changed +25
-69
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Build and Push Nushell Binaries @ Debian
1+ name : Build Nushell Release Images
22
33on :
44 push :
55 branches :
66 - main
77 paths :
8- - docker/debian.Dockerfile
8+ - docker
99 schedule :
1010 - cron : ' 15 2 * * *' # run at 02:15 AM UTC
1111 workflow_dispatch :
1616 permissions :
1717 contents : read
1818 packages : write
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ base : [debian, alpine]
1923 steps :
2024 - name : Checkout Code
2125 uses : actions/checkout@v4
5155
5256 - name : Build and Push Debian Image
5357 uses : docker/build-push-action@v6
58+ if : ${{ matrix.base == 'debian' }}
5459 with :
5560 push : true
5661 context : ./docker
6469 tags : |
6570 ghcr.io/nushell/nushell:latest-bookworm
6671 ghcr.io/nushell/nushell:${{ env.NU_VERSION }}-bookworm
72+
73+ - name : Build and Push Alpine Image
74+ uses : docker/build-push-action@v6
75+ if : ${{ matrix.base == 'alpine' }}
76+ with :
77+ push : true
78+ platforms : linux/amd64,linux/arm64,linux/arm/v7
79+ context : ./docker
80+ file : ./docker/Dockerfile
81+ build-args : |
82+ BUILD_REF=${{ env.BUILD_REF }}
83+ BUILD_DATE=${{ env.BUILD_DATE }}
84+ NU_VERSION=${{ env.NU_VERSION }}
85+ tags : |
86+ ghcr.io/nushell/nushell:latest
87+ ghcr.io/nushell/nushell:latest-alpine
88+ ghcr.io/nushell/nushell:${{ env.NU_VERSION }}
89+ ghcr.io/nushell/nushell:${{ env.NU_VERSION }}-alpine
You can’t perform that action at this time.
0 commit comments