Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push builds into GHCR #140

Closed
thekaveman opened this issue Oct 15, 2021 · 0 comments · Fixed by #152
Closed

Push builds into GHCR #140

thekaveman opened this issue Oct 15, 2021 · 0 comments · Fixed by #152

Comments

@thekaveman
Copy link
Member

thekaveman commented Oct 15, 2021

We build a Docker image and push it to AWS for use in the production app, but this sits inside a private ECR repository.

It could be useful to have the image on a public repo as well. Based on the work from cal-itp/eligibility-server#22, we can add an additional docker/build-push-action step to our dev deployment that pushes into the GitHub Container Registry:

- name: Build and push main
  uses: docker/build-push-action@v2
  if: ${{ github.event_name != 'release' }}
  with:
    push: true
    tags: ghcr.io/${{github.repository}}:<branch>

We can do this for each of our 3 environments to always have the current image running in each environment, available in GHCR as well.

Since #135 landed, additional docker/build-push-action steps should go very fast.

@thekaveman thekaveman added this to the October 2021 milestone Oct 15, 2021
@thekaveman thekaveman added this to Backlog in Benefits 2021 via automation Oct 15, 2021
@thekaveman thekaveman changed the title Push builds into GCR Push builds into GHCR Oct 15, 2021
Benefits 2021 automation moved this from Backlog to Done Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Benefits 2021
  
Done
Development

Successfully merging a pull request may close this issue.

1 participant