-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sandro Koll
committed
Feb 17, 2020
1 parent
2141722
commit f0b537e
Showing
18 changed files
with
59 additions
and
191 deletions.
There are no files selected for viewing
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,26 @@ | ||
name: Build from master | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Lint | ||
uses: actions-contrib/golangci-lint@master | ||
with: | ||
args: run | ||
- name: Docker Image | ||
run: | | ||
docker login -u metalstackci -p ${{ secrets.DOCKER_HUB_TOKEN }} | ||
docker build -f Dockerfile.console -t metalstack/metal-console . | ||
docker push metalstack/metal-console | ||
docker build -f Dockerfile.bmcproxy -t metalstack/bmc-proxy} . | ||
docker push metalstack/bmc-proxy | ||
docker build -f Dockerfile.bmcreverseproxy -t metalstack/bmc-reverse-proxy . | ||
docker push metalstack/bmc-reverse-proxy |
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,29 @@ | ||
name: Build and Test | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Lint | ||
uses: actions-contrib/golangci-lint@master | ||
with: | ||
args: run | ||
- name: Branch name | ||
run: echo running on branch ${GITHUB_REF##*/} | ||
- name: Build the Docker images | ||
run: | | ||
export GITHUB_TAG_NAME=${GITHUB_REF##*/} | ||
docker login -u metalstackci -p ${{ secrets.DOCKER_HUB_TOKEN }} | ||
docker build -f Dockerfile.console -t metalstack/metal-console:${GITHUB_TAG_NAME} . | ||
docker push metalstack/metal-console:${GITHUB_TAG_NAME} | ||
docker build -f Dockerfile.bmcproxy -t metalstack/bmc-proxy:${GITHUB_TAG_NAME} . | ||
docker push metalstack/bmc-proxy:${GITHUB_TAG_NAME} | ||
docker build -f Dockerfile.bmcreverseproxy -t metalstack/bmc-reverse-proxy:${GITHUB_TAG_NAME} . | ||
docker push metalstack/bmc-reverse-proxy:${GITHUB_TAG_NAME} |
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
bin | ||
.vscode | ||
metal-api | ||
.idea | ||
Dockerfile | ||
docker-make.yaml |
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
FROM registry.fi-ts.io/cloud-native/go-builder:latest as builder | ||
FROM metalstack/builder:latest as builder | ||
|
||
FROM alpine:3.10 | ||
|
||
LABEL maintainer="FI-TS Devops <[email protected]>" | ||
|
||
RUN apk add \ | ||
ipmitool \ | ||
libvirt-client | ||
|
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
FROM nginx:1.17 | ||
LABEL maintainer FI-TS Devops <[email protected]> | ||
|
||
COPY nginx.conf /etc/nginx/ | ||
COPY server.crt /etc/ssl/certs/ | ||
|
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
FROM registry.fi-ts.io/cloud-native/go-builder:latest as builder | ||
FROM metalstack/builder:latest as builder | ||
|
||
FROM alpine:3.10 | ||
|
||
LABEL maintainer="FI-TS Devops <[email protected]>" | ||
|
||
COPY host-key ca.crt client.crt client.pem / | ||
COPY --from=builder /work/bin/metal-console / | ||
|
||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.