Skip to content

Commit

Permalink
uncomment for PR test
Browse files Browse the repository at this point in the history
  • Loading branch information
thetoolsmith committed Dec 23, 2024
1 parent 568cb24 commit 0a4f587
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 80 deletions.
72 changes: 36 additions & 36 deletions .github/build_and_publish_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,44 @@ on:
push:
branches:
- main
#jobs:
# build-publish-image:
# 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}}
jobs:
build-publish-image:
runs-on: ubuntu-latest
defaults:
run:
working-directory: './images'
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main

# - name: 'Build and Publish alpine image'
# run: |
# docker build -t ghcr.io/cfpb/regtech/sbl/alpine:3.18 -f Dockerfile-alpine .
# docker push ghcr.io/cfpb/regtech/sbl/alpine:3.18
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

# - name: 'Build and Publish python-alpine image'
# run: |
# docker build -t ghcr.io/cfpb/regtech/sbl/python-alpine:3.12 -f Dockerfile-python-alpine .
# docker push ghcr.io/cfpb/regtech/sbl/python-alpine:3.12
- name: 'Build and Publish alpine image'
run: |
docker build -t ghcr.io/cfpb/regtech/sbl/alpine:3.18 -f Dockerfile-alpine .
docker push ghcr.io/cfpb/regtech/sbl/alpine:3.18
# - name: 'Build and Publish nginx-alpine image'
# run: |
# docker build -t ghcr.io/cfpb/regtech/sbl/nginx-alpine:1.27 -f Dockerfile-nginx-alpine .
# docker push ghcr.io/cfpb/regtech/sbl/nginx-alpine:1.27
- name: 'Build and Publish python-alpine image'
run: |
docker build -t ghcr.io/cfpb/regtech/sbl/python-alpine:3.12 -f Dockerfile-python-alpine .
docker push ghcr.io/cfpb/regtech/sbl/python-alpine:3.12
# - name: 'Build and Publish node-js-alpine image'
# run: |
# docker build -t ghcr.io/cfpb/regtech/sbl/node-js-alpine:3.20 -f Dockerfile-node-js-alpine .
# docker push ghcr.io/cfpb/regtech/sbl/node-js-alpine:3.20
- name: 'Build and Publish nginx-alpine image'
run: |
docker build -t ghcr.io/cfpb/regtech/sbl/nginx-alpine:1.27 -f Dockerfile-nginx-alpine .
docker push ghcr.io/cfpb/regtech/sbl/nginx-alpine:1.27
# - name: 'Build and Publish python-ubi8 image'
# run: |
# docker build -t ghcr.io/cfpb/regtech/sbl/python-ubi8:3.12 -f Dockerfile-python-ubi8 .
# docker push ghcr.io/cfpb/regtech/sbl/python-ubi8:3.12
- name: 'Build and Publish node-js-alpine image'
run: |
docker build -t ghcr.io/cfpb/regtech/sbl/node-js-alpine:3.20 -f Dockerfile-node-js-alpine .
docker push ghcr.io/cfpb/regtech/sbl/node-js-alpine:3.20
- name: 'Build and Publish python-ubi8 image'
run: |
docker build -t ghcr.io/cfpb/regtech/sbl/python-ubi8:3.12 -f Dockerfile-python-ubi8 .
docker push ghcr.io/cfpb/regtech/sbl/python-ubi8:3.12
84 changes: 40 additions & 44 deletions .github/build_images.yml
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 .

0 comments on commit 0a4f587

Please sign in to comment.