Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
switch to circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
ciphax committed Mar 2, 2019
1 parent 6d81080 commit 8aacf90
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 24 deletions.
88 changes: 88 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
version: 2.1
jobs:
build:
docker:
- image: circleci/buildpack-deps:latest
steps:
- checkout
- setup_remote_docker
- run:
name: Build Docker image
command: |
docker build --target builder -t letsencrypt-inwx-builder .
docker build -t kegato/letsencrypt-inwx:latest .
- run:
name: Extract Artifacts
command: |
mkdir artifacts
docker save -o image.tar kegato/letsencrypt-inwx:latest
docker create --name builder letsencrypt-inwx-builder
docker cp builder:/home/rust/src/target/x86_64-unknown-linux-musl/release/letsencrypt-inwx .
docker cp builder:/home/rust/src/target/x86_64-unknown-linux-musl/debian .
mv debian/*.deb artifacts/letsencrypt-inwx.deb
zip artifacts/letsencrypt-inwx.zip letsencrypt-inwx
- persist_to_workspace:
root: .
paths:
- ./artifacts
- ./image.tar

publish-docker-image:
docker:
- image: circleci/buildpack-deps:latest
steps:
- attach_workspace:
at: ./workspace
- setup_remote_docker
- run:
name: Load archived Docker image
command: docker load -i ./workspace/image.tar
- run:
name: Publish Docker Image to Docker Hub
command: |
echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
docker push kegato/letsencrypt-inwx:latest
publish-github-release:
docker:
- image: circleci/golang:latest
steps:
- attach_workspace:
at: ./workspace
- run:
name: "Publish Release on GitHub"
command: |
go get github.com/tcnksm/ghr
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} ./workspace/artifacts/
publish-crate:
docker:
- image: circleci/rust:latest
steps:
- checkout
- run:
name: "Publish crate to crates.io"
command: |
cargo login ${CRATES_IO_TOKEN}
cargo publish
workflows:
version: 2
main:
jobs:
- build
- publish-docker-image:
requires:
- build
filters:
tags:
only: /^[0-9]+\.[0-9]+\.[0-9]+$/
- publish-github-release:
requires:
- build
filters:
tags:
only: /^[0-9]+\.[0-9]+\.[0-9]+$/
- publish-crate:
filters:
tags:
only: /^[0-9]+\.[0-9]+\.[0-9]+$/
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/.vscode
/.git
/.gitignore
/.travis-yml
/.circleci
/target
/LICENSE.txt
/README.md
Expand Down
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# letsencrypt-inwx [![Build Status](https://travis-ci.org/kegato/letsencrypt-inwx.svg?branch=master)](https://travis-ci.org/kegato/letsencrypt-inwx) [![Docker Pulls](https://img.shields.io/docker/pulls/kegato/letsencrypt-inwx.svg)](https://hub.docker.com/r/kegato/letsencrypt-inwx/) [![Crates.io](https://img.shields.io/crates/v/letsencrypt-inwx.svg)](https://crates.io/crates/letsencrypt-inwx)
# letsencrypt-inwx [![Docker Pulls](https://img.shields.io/docker/pulls/kegato/letsencrypt-inwx.svg)](https://hub.docker.com/r/kegato/letsencrypt-inwx/) [![Crates.io](https://img.shields.io/crates/v/letsencrypt-inwx.svg)](https://crates.io/crates/letsencrypt-inwx)

A small cli utility for automating the letsencrypt dns-01 challenge for domains hosted by inwx. This allows you to obtain wildcard certificates from letsencrypt.

Expand Down

0 comments on commit 8aacf90

Please sign in to comment.