generated from cfpb/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
568cb24
commit 0a4f587
Showing
2 changed files
with
76 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,43 @@ | ||
name: Build Base Images | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
# pull_request: | ||
# branches: [main] | ||
# workflow_dispatch: | ||
|
||
#jobs: | ||
# build-images: | ||
# runs-on: ubuntu-latest | ||
# defaults: | ||
# run: | ||
# working-directory: './images' | ||
# steps: | ||
# - name: 'Checkout GitHub Action' | ||
# uses: actions/checkout@main | ||
# | ||
# - name: 'Login to GitHub Container Registry' | ||
# uses: docker/login-action@v1 | ||
# with: | ||
# registry: ghcr.io | ||
# username: ${{github.actor}} | ||
# password: ${{secrets.GITHUB_TOKEN}} | ||
# | ||
# - name: 'Build alpine image' | ||
# run: | | ||
# docker build -t ghcr.io/cfpb/regtech/sbl/alpine:3.18 -f Dockerfile-alpine . | ||
|
||
# - name: 'Build python-alpine image' | ||
# run: | | ||
# docker build -t ghcr.io/cfpb/regtech/sbl/python-alpine:3.12 -f Dockerfile-python-alpine . | ||
|
||
# - name: 'Build nginx-alpine image' | ||
# run: | | ||
# docker build -t ghcr.io/cfpb/regtech/sbl/nginx-alpine:1.27 -f Dockerfile-nginx-alpine. | ||
|
||
# - name: 'Build node-js-alpine image' | ||
# run: | | ||
# docker build -t ghcr.io/cfpb/regtech/sbl/node-js-alpine:3.20 -f Dockerfile-node-js-alpine . | ||
|
||
# - name: 'Build python-ubi8 image' | ||
# run: | | ||
# docker build -t ghcr.io/cfpb/regtech/sbl/python-ubi8:3.12 -f Dockerfile-python-ubi8 . | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-images: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: './images' | ||
steps: | ||
- name: 'Checkout GitHub Action' | ||
uses: actions/checkout@main | ||
|
||
- name: 'Login to GitHub Container Registry' | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{github.actor}} | ||
password: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: 'Build alpine image' | ||
run: | | ||
docker build -t ghcr.io/cfpb/regtech/sbl/alpine:3.18 -f Dockerfile-alpine . | ||
- name: 'Build python-alpine image' | ||
run: | | ||
docker build -t ghcr.io/cfpb/regtech/sbl/python-alpine:3.12 -f Dockerfile-python-alpine . | ||
- name: 'Build nginx-alpine image' | ||
run: | | ||
docker build -t ghcr.io/cfpb/regtech/sbl/nginx-alpine:1.27 -f Dockerfile-nginx-alpine . | ||
- name: 'Build node-js-alpine image' | ||
run: | | ||
docker build -t ghcr.io/cfpb/regtech/sbl/node-js-alpine:3.20 -f Dockerfile-node-js-alpine . | ||
- name: 'Build python-ubi8 image' | ||
run: | | ||
docker build -t ghcr.io/cfpb/regtech/sbl/python-ubi8:3.12 -f Dockerfile-python-ubi8 . |