-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
escapace
committed
Aug 26, 2019
1 parent
d285291
commit 704872f
Showing
10 changed files
with
174 additions
and
61 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
- '!master' | ||
tags: | ||
- 'v*' | ||
name: Pipeline | ||
jobs: | ||
test-linux: | ||
name: "Linux Test" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
suite: [lint, centos, alpine] | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
submodules: true | ||
- name: manage ci | ||
run: | | ||
./manage trust-escapace | ||
./manage ci | ||
env: | ||
TEST_SUITE: ${{ matrix.suite }} | ||
test-macOS: | ||
name: "macOS Test" | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
with: | ||
submodules: true | ||
- name: manage ci | ||
run: | | ||
brew install bash gnu-sed gnupg | ||
./manage trust-escapace | ||
./manage ci | ||
env: | ||
TEST_SUITE: osx | ||
docker: | ||
name: "Docker build and push" | ||
runs-on: ubuntu-latest | ||
needs: [test-macOS, test-linux] | ||
steps: | ||
- uses: actions/checkout@master | ||
if: contains(github.ref, 'tags/v') | ||
with: | ||
submodules: true | ||
- name: Docker Login | ||
if: contains(github.ref, 'tags/v') | ||
uses: actions/docker/login@fe7ed3ce992160973df86480b83a2f8ed581cd50 | ||
env: | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
- name: Docker Build | ||
if: contains(github.ref, 'tags/v') | ||
uses: actions/docker/cli@fe7ed3ce992160973df86480b83a2f8ed581cd50 | ||
with: | ||
args: build -t escapace/manage:latest -t escapace/manage:${GITHUB_REF:11} . | ||
- name: Docker Push Latest | ||
if: contains(github.ref, 'tags/v') | ||
uses: actions/docker/cli@fe7ed3ce992160973df86480b83a2f8ed581cd50 | ||
env: | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
with: | ||
args: push escapace/manage:latest | ||
- name: Docker Push Tag | ||
if: contains(github.ref, 'tags/v') | ||
uses: actions/docker/cli@fe7ed3ce992160973df86480b83a2f8ed581cd50 | ||
env: | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
with: | ||
args: push escapace/manage:${GITHUB_REF:11} | ||
release: | ||
name: "Github Release" | ||
runs-on: ubuntu-latest | ||
needs: [test-macOS, test-linux] | ||
steps: | ||
- uses: actions/checkout@master | ||
if: contains(github.ref, 'tags/v') | ||
with: | ||
submodules: true | ||
- name: release | ||
if: contains(github.ref, 'tags/v') | ||
run: | | ||
mkdir ~/bin | ||
wget -qO- https://github.com/github/hub/releases/download/v2.12.3/hub-linux-amd64-2.12.3.tgz | tar xvz -C ~/bin --strip=2 --wildcards --no-anchored 'hub*/bin/hub' | ||
~/bin/hub release create -a manage -m "manage ${GITHUB_REF:11}" v${GITHUB_REF:11} | ||
env: | ||
GITHUB_USER: escapace | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM alpine:latest | ||
|
||
RUN apk add --no-cache \ | ||
coreutils bash sed bc gnupg git tini curl | ||
|
||
ENV DOCKER=true | ||
RUN mkdir -p /workdir | ||
WORKDIR /workdir | ||
|
||
COPY .manage.yml .manage.yml | ||
COPY LICENSE LICENSE | ||
COPY manage manage | ||
COPY modules modules | ||
COPY scripts scripts | ||
COPY tests tests | ||
COPY vendor vendor | ||
COPY .manage_modules .manage_modules | ||
|
||
RUN ./manage trust-escapace | ||
|
||
ENTRYPOINT ["/sbin/tini", "--", "/workdir/manage"] | ||
CMD ["help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM centos:latest | ||
RUN rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | ||
RUN yum -y install coreutils findutils bc gnupg git | ||
|
||
ENV DOCKER=true | ||
RUN mkdir -p /workdir | ||
WORKDIR /workdir | ||
|
||
COPY .manage.yml .manage.yml | ||
COPY LICENSE LICENSE | ||
COPY manage manage | ||
COPY modules modules | ||
COPY scripts scripts | ||
COPY tests tests | ||
COPY vendor vendor | ||
COPY .manage_modules .manage_modules | ||
|
||
RUN ./manage trust-escapace | ||
RUN mv /workdir/vendor/tini/tini /sbin/tini | ||
RUN chown root:root /sbin/tini | ||
RUN chmod 755 /sbin/tini | ||
|
||
ENTRYPOINT ["/sbin/tini", "--", "/workdir/manage"] | ||
CMD ["help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM centos:latest | ||
RUN rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | ||
RUN yum -y install coreutils findutils bc gnupg git ShellCheck | ||
|
||
ENV DOCKER=true | ||
RUN mkdir -p /workdir | ||
WORKDIR /workdir | ||
|
||
COPY .manage.yml .manage.yml | ||
COPY LICENSE LICENSE | ||
COPY manage manage | ||
COPY modules modules | ||
COPY scripts scripts | ||
COPY tests tests | ||
COPY vendor vendor | ||
COPY .manage_modules .manage_modules | ||
|
||
RUN ./manage trust-escapace | ||
RUN mv /workdir/vendor/tini/tini /sbin/tini | ||
RUN chown root:root /sbin/tini | ||
RUN chmod 755 /sbin/tini | ||
|
||
ENTRYPOINT ["/sbin/tini", "--", "/workdir/manage"] | ||
CMD ["help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters