Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
- uses: docker/build-push-action@v2
with:
push: true
platforms: linux/arm64
tags: docker.pkg.github.com/${{ github.repository }}/noolite:${{ github.sha }}

latest:
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM alpine:latest as alpine
FROM --platform=linux/arm64 alpine:latest as alpine
RUN apk --no-cache add tzdata zip ca-certificates
WORKDIR /usr/share/zoneinfo
# -0 means no compression. Needed because go's
# tz loader doesn't handle compressed data.
RUN zip -r -0 /zoneinfo.zip .

FROM golang:1.16 AS builder
FROM --platform=linux/arm64 golang:1.16 AS builder
WORKDIR /gomod/noolite
ADD . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -o /go/bin/noolite ./cmd
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o /go/bin/noolite ./cmd

FROM scratch
FROM --platform=linux/arm64 scratch
# configurations
WORKDIR /app
# the timezone data:
Expand Down
2 changes: 2 additions & 0 deletions ansible/playbooks/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
- name: deploy
hosts: rasp
gather_facts: no
tasks:
- name: login github docker registry
docker_login:
Expand All @@ -15,6 +16,7 @@
state: started
pull: yes
restart_policy: always
restart: yes
devices:
- "/dev/ttyUSB0:/dev/ttyUSB0"
env:
Expand Down
64 changes: 0 additions & 64 deletions ansible/playbooks/prepare.yml

This file was deleted.