Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .github/scripts/docker_build_and_push.sh

This file was deleted.

22 changes: 16 additions & 6 deletions .github/workflows/containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
IMAGE_NAME: pyrenew-hew

jobs:
# This can be used as a template, later: https://github.com/CDCgov/cfa-epinow2-pipeline/blob/main/.github/workflows/containers-and-az-pool.yaml
build-pipeline-image:
runs-on: ubuntu-latest
name: Build image
Expand Down Expand Up @@ -46,10 +47,19 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Docker build and push
run: |
bash $GITHUB_WORKSPACE/.github/scripts/docker_build_and_push.sh \
${{ env.IMAGE_NAME }} \
${{ steps.image-tag.outputs.tag }} \
${{ github.event.pull_request.head.sha || github.sha }} \
${{ steps.branch-name.outputs.branch }} \
uses: docker/build-push-action@v5
with:
context: .
file: Containerfile
push: true
builder: ${{ steps.buildx.outputs.name }}
tags: |
ghcr.io/cdcgov/${{ env.IMAGE_NAME }}:${{ steps.image-tag.outputs.tag }}
build-args: |
GIT_COMMIT_SHA=${{ github.event.pull_request.head.sha || github.sha }}
GIT_BRANCH_NAME=${{ steps.branch-name.outputs.branch }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -405,3 +405,4 @@ nwss-vintages
# Azure configuration files
azureconfig.env
azureconfig.sh
config.yaml