Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Commit

Permalink
Onboarding to app-interface. (#6)
Browse files Browse the repository at this point in the history
Currently, nothing is triggered on PRs, only on merges to master.

Signed-off-by: Yoni Bettan <[email protected]>
  • Loading branch information
ybettan authored Aug 18, 2020
1 parent f08668f commit 7ba26e4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build_deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

TAG=$(git rev-parse --short=7 HEAD)
ASSISTED_IGNITION_GENERATOR="quay.io/app-sre/assisted-ignition-generator"

docker build -t "${ASSISTED_IGNITION_GENERATOR}:latest" -f Dockerfile.assisted-ignition-generator .
docker tag "${ASSISTED_IGNITION_GENERATOR}:latest" "${ASSISTED_IGNITION_GENERATOR}:${TAG}"

DOCKER_CONF="${PWD}/.docker"
mkdir -p "${DOCKER_CONF}"
docker --config="${DOCKER_CONF}" login -u="${QUAY_USER}" -p="${QUAY_TOKEN}" quay.io

docker --config="${DOCKER_CONF}" push "${ASSISTED_IGNITION_GENERATOR}:latest"
docker --config="${DOCKER_CONF}" push "${ASSISTED_IGNITION_GENERATOR}:${TAG}"

3 changes: 3 additions & 0 deletions pr_check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exit 0

0 comments on commit 7ba26e4

Please sign in to comment.