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:
Aaron Schlesinger 2021-04-14 10:45:34 -07:00 committed by GitHub
parent 8c60d9d6c8
commit 54928eaee7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 3 deletions

37
.github/workflows/images.yaml vendored Normal file
View File

@ -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 .

View File

@ -1,6 +1,6 @@
# adapted from Athens
# 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
FROM golang:${GOLANG_VERSION}-alpine AS builder

View File

@ -1,6 +1,6 @@
# adapted from Athens
# 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

View File

@ -1,6 +1,6 @@
# taken from Athens
# 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
FROM golang:${GOLANG_VERSION}-alpine AS builder