3 コミット

作成者 SHA1 メッセージ 日付
  JustAnotherArchivist f8e8becc23 Enable building container images with Drone 2ヶ月前
  JustAnotherArchivist ced402e4b9 Disable upgrading dependencies on container building 2ヶ月前
  JustAnotherArchivist 07fec42a1c Replace Dockerfile with Containerfile 2ヶ月前
2個のファイルの変更20行の追加2行の削除
分割表示
  1. +18
    -0
      .drone.yml
  2. +2
    -2
      Containerfile

+ 18
- 0
.drone.yml ファイルの表示

@@ -0,0 +1,18 @@
---
kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
registry: atdr-writer.meo.ws
username:
from_secret: atdr_user
password:
from_secret: atdr_pass
repo: atdr-writer.meo.ws/archiveteam/transfer.sh
dockerfile: Containerfile
purge: true
auto_tag: false
tags:
- latest

Dockerfile → Containerfile ファイルの表示

@@ -1,6 +1,6 @@
# Default to Go 1.13
ARG GO_VERSION=1.13
FROM golang:${GO_VERSION}-alpine as build
FROM docker.io/library/golang:${GO_VERSION}-alpine as build

# Necessary to run 'go get' and to compile the linked binary
RUN apk add git musl-dev
@@ -12,7 +12,7 @@ WORKDIR /go/src/github.com/dutchcoders/transfer.sh
ENV GO111MODULE=on

# build & install server
RUN go get -u ./... && CGO_ENABLED=0 go build -ldflags -a -tags netgo -ldflags '-w -extldflags "-static"' -o /go/bin/transfersh github.com/dutchcoders/transfer.sh
RUN go get ./... && CGO_ENABLED=0 go build -ldflags -a -tags netgo -ldflags '-w -extldflags "-static"' -o /go/bin/transfersh github.com/dutchcoders/transfer.sh

FROM scratch AS final
LABEL maintainer="Andrea Spacca <andrea.spacca@gmail.com>"

読み込み中…
キャンセル
保存