Compare commits
No commits in common. "279da283238fdaff8ae1db9199e5cceb5978e104" and "2970d15532c137ba1583f2268e969d88d0a6527c" have entirely different histories.
279da28323
...
2970d15532
3 changed files with 0 additions and 67 deletions
|
@ -1,4 +0,0 @@
|
|||
README.md
|
||||
LICENSE.txt
|
||||
/dist
|
||||
/target
|
43
.drone.yml
43
.drone.yml
|
@ -1,43 +0,0 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: publish sha
|
||||
image: banzaicloud/drone-kaniko
|
||||
settings:
|
||||
registry: registry.fromouter.space
|
||||
repo: hamcha/staxman
|
||||
cache: true
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_COMMIT_SHA}
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
|
||||
- name: publish tag
|
||||
image: banzaicloud/drone-kaniko
|
||||
settings:
|
||||
registry: registry.fromouter.space
|
||||
repo: hamcha/staxman
|
||||
cache: true
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
tags:
|
||||
- ${DRONE_COMMIT_BRANCH}
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
---
|
||||
kind: signature
|
||||
hmac: 62e075b75a39fc7e92f8d32d362140c4e80ee62977224b66352d21d5d2d4c575
|
||||
|
||||
...
|
20
Dockerfile
20
Dockerfile
|
@ -1,20 +0,0 @@
|
|||
FROM public.ecr.aws/docker/library/rust:1-alpine as builder
|
||||
|
||||
RUN rustup default stable
|
||||
RUN apk add --no-cache musl-dev openssl-dev openssl-libs-static pkgconf git
|
||||
|
||||
# Set `SYSROOT` to a dummy path (default is /usr) because pkg-config-rs *always*
|
||||
# links those located in that path dynamically but we want static linking, c.f.
|
||||
# https://github.com/rust-lang/pkg-config-rs/blob/54325785816695df031cef3b26b6a9a203bbc01b/src/lib.rs#L613
|
||||
ENV SYSROOT=/dummy
|
||||
|
||||
WORKDIR /wd
|
||||
COPY . /wd
|
||||
RUN cargo build --release --target=x86_64-unknown-linux-musl
|
||||
|
||||
FROM public.ecr.aws/docker/library/alpine
|
||||
ARG version=unknown
|
||||
ARG release=unreleased
|
||||
|
||||
COPY --from=builder /wd/target/x86_64-unknown-linux-musl/release/staxman /usr/local/bin/
|
||||
CMD ["staxman"]
|
Reference in a new issue