Skip to content

Commit ab6347e

Browse files
committed
Auto-build Docker image
1 parent e8902a5 commit ab6347e

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

.github/workflows/deno-build-release.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,45 @@ jobs:
109109
${{ steps.names.outputs.outdir }}/${{ steps.names.outputs.bin }}
110110
${{ steps.names.outputs.outdir }}/${{ steps.names.outputs.archive }}
111111
112+
docker:
113+
name: Docker image
114+
runs-on: ubuntu-latest
115+
steps:
116+
- name: Checkout
117+
uses: actions/checkout@v4
118+
119+
- name: Compute version & outdir
120+
id: meta
121+
shell: bash
122+
run: |
123+
set -euo pipefail
124+
VERSION="${GITHUB_REF_NAME}"
125+
OUTDIR="dist"
126+
mkdir -p "$OUTDIR"
127+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
128+
echo "outdir=$OUTDIR" >> "$GITHUB_OUTPUT"
129+
130+
- name: Build Docker image
131+
run: |
132+
docker build --pull -t x32-proxy:${{ steps.meta.outputs.version }} .
133+
134+
- name: Save versioned tarball
135+
shell: bash
136+
run: |
137+
set -euo pipefail
138+
docker save x32-proxy:${{ steps.meta.outputs.version }} > \
139+
"${{ steps.meta.outputs.outdir }}/x32-proxy-${{ steps.meta.outputs.version }}.tar"
140+
ls -lh "${{ steps.meta.outputs.outdir }}"/*.tar
141+
142+
- name: Upload Docker artifact
143+
uses: actions/upload-artifact@v4
144+
with:
145+
name: docker-image
146+
path: ${{ steps.meta.outputs.outdir }}/*.tar
147+
112148
release:
113149
name: Create GitHub Release
114-
needs: build
150+
needs: [build, docker]
115151
runs-on: ubuntu-latest
116152
steps:
117153
- name: Download all artifacts

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "x32-proxy",
3-
"version": "2.5.5",
3+
"version": "2.5.6",
44
"description": "Proxy server for Behringer X32/Midas M32-series consoles' OSC commands, for VPNs and IPv6 networks",
55
"homepage": "https://github.com/audiopump/x32-proxy",
66
"repository": {

0 commit comments

Comments
 (0)