Merge pull request #23 from vrothberg/build-container

Add build-container make target
This commit is contained in:
Valentin Rothberg 2019-09-11 12:04:48 +02:00 committed by GitHub
commit 270e07a34a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -3,7 +3,8 @@ sudo: required
before_install: before_install:
- sudo add-apt-repository ppa:projectatomic/ppa --yes - sudo add-apt-repository ppa:projectatomic/ppa --yes
- sudo apt-get update -qq - sudo apt-get update -qq
- sudo apt-get install -qq shellcheck skopeo - sudo apt-get install -qq podman shellcheck skopeo
script: script:
- make validate - make validate
- make build-container

View file

@ -1,4 +1,4 @@
FROM fedora FROM docker.io/library/fedora:latest
RUN dnf install -y jq skopeo findutils file 'dnf-command(download)' RUN dnf install -y jq skopeo findutils file 'dnf-command(download)'

View file

@ -1,7 +1,12 @@
SRC := ./BuildSourceImage.sh SRC := ./BuildSourceImage.sh
CTR_IMAGE := localhost/containers/buildsourceimage
all: validate all: validate
.PHONY: validate .PHONY: validate
validate: $(SRC) validate: $(SRC)
shellcheck -a $(SRC) shellcheck -a $(SRC)
.PHONY: build-container
build-container: Dockerfile
podman build -f Dockerfile -t $(CTR_IMAGE) .