Skip to content

Commit 3e05777

Browse files
committed
Add release-nu-image.yaml to build debian and alpine images
1 parent 2d5ac8e commit 3e05777

File tree

2 files changed

+25
-69
lines changed

2 files changed

+25
-69
lines changed

.github/workflows/release-nu-alpine.yaml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/release-nu-debian.yaml renamed to .github/workflows/release-nu-image.yaml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Build and Push Nushell Binaries @ Debian
1+
name: Build Nushell Release Images
22

33
on:
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:
@@ -16,6 +16,10 @@ jobs:
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
@@ -51,6 +55,7 @@ jobs:
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
@@ -64,3 +69,21 @@ jobs:
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

0 commit comments

Comments
 (0)