index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2019-09-05 22:01:27.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2019-09-05 22:01:27.0 +00:00:00
commit
5924659bddced2dc42d1e6dccebf9ff78e072041 [patch]
tree
4604fee0f0207409853f139a94281bb6af01ab62
parent
e2a439410a85473ee35cbf7f569d03244be9c357
download
5924659bddced2dc42d1e6dccebf9ff78e072041.tar.gz

fix: ci-cd pipelines release



Diff

 .drone.yml                |  7 -------
 docker/alpine/Dockerfile  | 26 --------------------------
 docker/scratch/Dockerfile | 18 ------------------
 3 files changed, 51 deletions(-)

diff --git a/.drone.yml b/.drone.yml
index 11415be..e0133d0 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -27,7 +27,6 @@ pipeline:
        commands:
            - make prod.release
        when:
            branch: master
            event: tag

    publish-image-scratch:
@@ -44,7 +43,6 @@ pipeline:
        build_args:
            - DOCKER_IMAGE_VERSION=${DRONE_TAG}
        when:
            branch: master
            event: tag

    publish-image-alpine:
@@ -62,7 +60,6 @@ pipeline:
        build_args:
            - DOCKER_IMAGE_VERSION=${DRONE_TAG}-alpine
        when:
            branch: master
            event: tag

    publish-gitea-release:
@@ -79,7 +76,6 @@ pipeline:
            - md5
            - sha1
        when:
            branch: master
            event: tag

    # publish-github-release:
@@ -95,7 +91,6 @@ pipeline:
    #         - md5
    #         - sha1
    #     when:
    #         branch: master
    #         event: tag

    publish-image-scratch-docker-hub:
@@ -109,7 +104,6 @@ pipeline:
            from_secret: dockerhub_password
        auto_tag: true
        when:
            branch: master
            event: tag

    publish-image-alpine-docker-hub:
@@ -124,7 +118,6 @@ pipeline:
        auto_tag: true
        auto_tag_suffix: alpine
        when:
            branch: master
            event: tag

    rebuild-cache:
diff --git a/docker/alpine/Dockerfile b/docker/alpine/Dockerfile
deleted file mode 100644
index 952f0dd..0000000
--- a/docker/alpine/Dockerfile
+++ /dev/null
@@ -1,26 +0,0 @@
FROM alpine:3.10

LABEL maintainer="Jose Quintana <joseluisq.net>"

RUN apk --no-cache add ca-certificates tzdata
RUN set -ex; \
    apkArch="$(apk --print-arch)"; \
    case "$apkArch" in \
    armhf) arch='armv6' ;; \
    aarch64) arch='arm64' ;; \
    x86_64) arch='amd64' ;; \
    *) echo >&2 "error: unsupported architecture: $apkArch"; exit 1 ;; \
    esac;

COPY ./bin/static-web-server /usr/local/bin/
COPY ./public /public
EXPOSE 80
CMD ["static-web-server"]

# Metadata
LABEL org.opencontainers.image.vendor="Jose Quintana" \
    org.opencontainers.image.url="https://git.joseluisq.net/joseluisq/static-web-server" \
    org.opencontainers.image.title="Static Web Server" \
    org.opencontainers.image.description="A blazing fast web server to static files-serving powered by Rust." \
    org.opencontainers.image.version="1.0.0-beta.1" \
    org.opencontainers.image.documentation="https://git.joseluisq.net/joseluisq/static-web-server"
diff --git a/docker/scratch/Dockerfile b/docker/scratch/Dockerfile
deleted file mode 100644
index 6358c0e..0000000
--- a/docker/scratch/Dockerfile
+++ /dev/null
@@ -1,18 +0,0 @@
FROM scratch

LABEL maintainer="Jose Quintana <joseluisq.net>"

COPY ./bin/static-web-server /
COPY ./public /public

EXPOSE 80
VOLUME ["/public"]
ENTRYPOINT ["/static-web-server"]

# Metadata
LABEL org.opencontainers.image.vendor="Jose Quintana" \
    org.opencontainers.image.url="https://git.joseluisq.net/joseluisq/static-web-server" \
    org.opencontainers.image.title="Static Web Server" \
    org.opencontainers.image.description="A blazing fast web server to static files-serving powered by Rust." \
    org.opencontainers.image.version="1.0.0-beta.1" \
    org.opencontainers.image.documentation="https://git.joseluisq.net/joseluisq/static-web-server"