Skip to content

Commit

Permalink
feat: build with goreleaser
Browse files Browse the repository at this point in the history
* remove vhs workflow
  • Loading branch information
aymanbagabas authored and maaslalani committed Oct 24, 2022
1 parent 066474f commit 0d6afd8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 44 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/vhs.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
captures/
tmp/
frames/
manpages
completions
dist
vhs
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
includes:
- from_url:
url: charmbracelet/meta/main/goreleaser.yaml
url: charmbracelet/meta/main/goreleaser-vhs.yaml

variables:
main: "./cmd/vhs"
main: "."
description: "A tool for recording terminal GIFs"
github_url: "https://github.com/charmbracelet/vhs"
maintainer: "Maas Lalani <maas@charm.sh>"
Expand Down
33 changes: 15 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
FROM tsl0922/ttyd:alpine as ttyd
FROM golang:1.19.2-alpine
FROM alpine:latest

# Install latest ttyd
COPY --from=ttyd /usr/bin/ttyd /usr/bin/ttyd
WORKDIR /src/vhs

# Install
COPY vhs /usr/bin/

# Install Fonts
RUN apk add \
RUN apk add --no-cache \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/main \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing \
font-adobe-source-code-pro font-source-code-pro-nerd \
font-bitstream-vera-sans-mono-nerd \
font-dejavu font-dejavu-sans-mono-nerd \
Expand All @@ -17,21 +23,12 @@ RUN apk add \
font-liberation font-liberation-mono-nerd \
font-noto \
font-roboto-mono \
font-ubuntu font-ubuntu-mono-nerd \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/main \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing

# Install Dependencies
RUN apk add ffmpeg chromium bash
font-ubuntu font-ubuntu-mono-nerd

# Verify Go Dependencies
COPY go.mod go.sum ./
RUN go mod download && go mod verify
# Install Dependencies
RUN apk add --no-cache ffmpeg chromium bash

# Source + Install
COPY . .
RUN go install cmd/vhs/vhs.go && \
go install cmd/serve/serve.go
# Expose port
EXPOSE 1976

ENTRYPOINT ["./entrypoint.sh"]
ENTRYPOINT ["/usr/bin/vhs"]

0 comments on commit 0d6afd8

Please sign in to comment.