Skip to content

Commit

Permalink
Update branch to main, add CI for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
kbdharun committed Jul 30, 2023
1 parent 8acb283 commit a553fd4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Docker Image CI on PR

on:
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Vib
run: |
wget https://github.com/Vanilla-OS/Vib/releases/download/v0.2.10/vib
chmod +x vib
./vib build recipe.yml
- name: Build the Docker image
run: docker image build -f Containerfile --tag vanillaos/core:validation .
3 changes: 2 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docker Image CI

on:
push:
branches: [ "main", "ghcr" ]
branches: [ "main" ]
workflow_dispatch:

env:
Expand Down Expand Up @@ -36,6 +36,7 @@ jobs:
- name: Build the Docker image
run: podman image build -f Containerfile --tag vanillaos/pico:${{ github.ref_name }} .

# Push the image to Nexus (Image Registry)
# - name: Push To Registry
# uses: redhat-actions/[email protected]
# with:
Expand Down

0 comments on commit a553fd4

Please sign in to comment.