Skip to content

Commit 9bc38cc

Browse files
committed
add Docker dependencies to release.yaml
1 parent f373a27 commit 9bc38cc

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/release.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,27 @@ on:
66
jobs:
77
goreleaser:
88
runs-on: macos-latest
9+
env:
10+
# Necessary for Docker manifest
11+
DOCKER_CLI_EXPERIMENTAL: "enabled"
912
steps:
13+
# Docker is not included on macos-latest
14+
- uses: docker-practice/actions-setup-docker@v1
15+
1016
- uses: actions/checkout@v3
1117
with:
1218
fetch-depth: 0
19+
20+
- name: Set up QEMU
21+
uses: docker/setup-qemu-action@v1
22+
23+
- name: Docker Login
24+
uses: docker/login-action@v1
25+
with:
26+
registry: ghcr.io
27+
username: ${{ github.repository_owner }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
1330
- uses: actions/setup-go@v3
1431
with:
1532
go-version: "~1.18"

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM alpine
22

3+
# Generated by goreleaser on `goreleaser release`
34
ADD coder /opt/coder
45

56
ENTRYPOINT [ "/opt/coder", "server" ]

0 commit comments

Comments
 (0)