Building images in PRs (#133)
* Building images in PRs Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net> * upping Dockerfile Go versions Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net>
This commit is contained in:
parent
8c60d9d6c8
commit
54928eaee7
|
|
@ -0,0 +1,37 @@
|
||||||
|
name: Build Images
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_scaler:
|
||||||
|
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Build The Scaler
|
||||||
|
run:
|
||||||
|
docker build -t scaler -f scaler/Dockerfile .
|
||||||
|
|
||||||
|
build_operator:
|
||||||
|
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Build The Operator
|
||||||
|
run:
|
||||||
|
docker build -t operator -f operator/Dockerfile .
|
||||||
|
|
||||||
|
build_interceptor:
|
||||||
|
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Build The Interceptor
|
||||||
|
run:
|
||||||
|
docker build -t interceptor -f interceptor/Dockerfile .
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# adapted from Athens
|
# adapted from Athens
|
||||||
# https://github.com/gomods/athens/blob/main/cmd/proxy/Dockerfile
|
# https://github.com/gomods/athens/blob/main/cmd/proxy/Dockerfile
|
||||||
ARG GOLANG_VERSION=1.14
|
ARG GOLANG_VERSION=1.16
|
||||||
ARG ALPINE_VERSION=3.11.5
|
ARG ALPINE_VERSION=3.11.5
|
||||||
|
|
||||||
FROM golang:${GOLANG_VERSION}-alpine AS builder
|
FROM golang:${GOLANG_VERSION}-alpine AS builder
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# adapted from Athens
|
# adapted from Athens
|
||||||
# https://github.com/gomods/athens/blob/main/cmd/proxy/Dockerfile
|
# https://github.com/gomods/athens/blob/main/cmd/proxy/Dockerfile
|
||||||
ARG GOLANG_VERSION=1.14
|
ARG GOLANG_VERSION=1.16
|
||||||
|
|
||||||
FROM golang:${GOLANG_VERSION}-alpine AS builder
|
FROM golang:${GOLANG_VERSION}-alpine AS builder
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# taken from Athens
|
# taken from Athens
|
||||||
# https://github.com/gomods/athens/blob/main/cmd/proxy/Dockerfile
|
# https://github.com/gomods/athens/blob/main/cmd/proxy/Dockerfile
|
||||||
ARG GOLANG_VERSION=1.14
|
ARG GOLANG_VERSION=1.16
|
||||||
ARG ALPINE_VERSION=3.11.5
|
ARG ALPINE_VERSION=3.11.5
|
||||||
|
|
||||||
FROM golang:${GOLANG_VERSION}-alpine AS builder
|
FROM golang:${GOLANG_VERSION}-alpine AS builder
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue