mirror of
https://github.com/sstent/containers.git
synced 2025-12-06 08:01:51 +00:00
adding garmin
This commit is contained in:
40
.github/workflows/garminexport.yml
vendored
Normal file
40
.github/workflows/garminexport.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
paths:
|
||||||
|
- 'garminexport/*'
|
||||||
|
- '.github/workflows/garminexport.yml'
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
-
|
||||||
|
name: Log into registry
|
||||||
|
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: rsync/
|
||||||
|
platforms: linux/arm/v7, Linux/amd64, linux/arm/v8
|
||||||
|
push: true
|
||||||
|
tags: ghcr.io/sstent/garminexport:latest
|
||||||
|
|
||||||
|
|
||||||
13
rsync/Dockerfile.lite
Normal file
13
rsync/Dockerfile.lite
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
FROM golang:1.16-alpine as builder
|
||||||
|
WORKDIR /src
|
||||||
|
ARG LITESTREAM_VERSION=v0.3.5
|
||||||
|
|
||||||
|
RUN apk add --no-cache --virtual .run-deps git gcc musl-dev && rm -rf /var/cache/apk/*
|
||||||
|
RUN git clone --depth 1 --branch v0.3.5 https://github.com/benbjohnson/litestream.git
|
||||||
|
WORKDIR /src/litestream
|
||||||
|
RUN go build -ldflags "-s -w -X 'main.Version=${LITESTREAM_VERSION}' -extldflags '-static'" -tags osusergo,netgo,sqlite_omit_load_extension -o /usr/local/bin/litestream ./cmd/litestream
|
||||||
|
|
||||||
|
FROM alpine
|
||||||
|
COPY --from=builder /usr/local/bin/litestream /usr/local/bin/litestream
|
||||||
|
ENTRYPOINT ["/usr/local/bin/litestream"]
|
||||||
|
CMD []
|
||||||
Reference in New Issue
Block a user