Skip to content

Commit

Permalink
💚 Save image to ghcr in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
heronshoes committed Aug 16, 2023
1 parent 1d969f4 commit 3c49cd7
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 'build container'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout (GitHub)
uses: actions/checkout@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pre-build image and run make ci-build in dev container
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/red-data-tools/red_amber
cacheFrom: ghcr.io/red-data-tools/red_amber
push: always
runCmd: bundle exec test

0 comments on commit 3c49cd7

Please sign in to comment.