Skip to content

Commit

Permalink
Configure prototype image builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Lantz authored and Jason Lantz committed Oct 31, 2023
1 parent b5bee23 commit fadd021
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/build_prototype.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build Docker Image

on:
push:
branches:
- feature/osc-prototype

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name == 'push' }}
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
ghcr.io/${{ github.repository }}:prototype
ghcr.io/${{ github.repository }}:${{ github.sha }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN apt-get install -y gh

# Install CumulusCI
RUN pip install --no-cache-dir --upgrade pip pip-tools \
pip --no-cache-dir install cumulusci cookiecutter
pip --no-cache-dir install git+https://github.com/SFDO-Community-Sprints/CumulusCI@feature/github-environments cookiecutter

# Copy devhub auth script and make it executable
COPY devhub.sh /usr/local/bin/devhub.sh
Expand Down

0 comments on commit fadd021

Please sign in to comment.