Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #10 from c4dt/archive_update
Browse files Browse the repository at this point in the history
Updating archive
  • Loading branch information
ineiti authored Aug 24, 2023
2 parents 64e9e27 + cbb73ef commit 502a72c
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 6 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build docker
on:
push:

jobs:
# This is copied from https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/c4dt/drynx:latest
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM golang:1.15 as builder

COPY . /go
RUN make cmd/server/server-static

FROM alpine:latest

COPY --from=builder /go/cmd/server/server-static /server
6 changes: 0 additions & 6 deletions cmd/server/Dockerfile

This file was deleted.

2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ require (
gonum.org/v1/gonum v0.7.0
gopkg.in/satori/go.uuid.v1 v1.2.0
)

replace github.com/qantik/qrgo v0.0.0-20160917134849-0c6b902c59f6 => github.com/c4dt/qrgo v0.0.0-20210312092726-8242850e1027
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVa
github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc=
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY=
github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs=
github.com/c4dt/qrgo v0.0.0-20210312092726-8242850e1027 h1:GSe51UkZExHU03DL5FTzUOUOmfdTcIyZwPsLTho9BFg=
github.com/c4dt/qrgo v0.0.0-20210312092726-8242850e1027/go.mod h1:KOdmrGnf8f9ixHmF7Tzm5ab/5WAIxwxc5UsLi+gsEAE=
github.com/cdipaolo/goml v0.0.0-20190412180403-e1f51f713598 h1:j2XRGH5Y5uWtBYXGwmrjKeM/kfu/jh7ZcnrGvyN5Ttk=
github.com/cdipaolo/goml v0.0.0-20190412180403-e1f51f713598/go.mod h1:sduMkaHcXDIWurl/Bd/z0rNEUHw5tr6LUA9IO8E9o0o=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
Expand Down

0 comments on commit 502a72c

Please sign in to comment.