Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/image-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: image-push

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.x
- name: Install dependencies
run: |
sudo pip install strato-skipper
mkdir -p ~/.docker
echo "{}" > ~/.docker/config.json
touch ${HOME}/.gitconfig
ln -s Dockerfile.bm-inventory Dockerfile
- name: build bm-inventory client
run: |
make create_inventory_client
- name: Get release version
id: get_version
run: echo ::set-env name=GIT_REVISION::$(echo ${GITHUB_SHA})
- name: Publish test-infra to Registry
uses: elgohr/Publish-Docker-Github-Action@2.15
with:
name: test-infra
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
REGISTRY: 'quay.io/ocpmetal'
dockerfile: "Dockerfile.test-infra"
buildargs: GIT_REVISION
tags: "ocpmetal,${{ env.GIT_REVISION }}"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ bm-inventory
minikube
*.log

**/RCS/**

2 changes: 2 additions & 0 deletions Dockerfile.test-infra
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM centos:8
ENV container docker
ARG GIT_REVISION
LABEL "git_revision"=${GIT_REVISION}

RUN yum -y install systemd make python3 virt-viewer virt-install libvirt-client git libvirt-devel gcc unzip wget jq && yum clean all; \
(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
Expand Down