-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: port Containerfile to use Vib's recipe
Signed-off-by: K.B.Dharun Krishna <[email protected]>
- Loading branch information
Showing
3 changed files
with
57 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name: Image | |
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
|
||
env: | ||
REGISTRY_USER: ${{ github.actor }} | ||
|
@@ -14,6 +15,15 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: vanilla-os/[email protected] | ||
with: | ||
recipe: 'recipe.yml' | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: Containerfile | ||
path: Containerfile | ||
|
||
- name: Build image | ||
run: docker image build -f Containerfile --tag ghcr.io/vanilla-os/differ:main . | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Differ | ||
id: differ | ||
stages: | ||
- id: build | ||
base: docker.io/golang:1.21-alpine | ||
singlelayer: false | ||
labels: | ||
maintainer: Mateus Melchiades | ||
cmd: ["/home/user/differ"] | ||
expose: | ||
"8080": "" | ||
modules: | ||
- name: init | ||
type: shell | ||
source: | ||
type: git | ||
url: https://github.com/Vanilla-OS/Differ | ||
branch: main | ||
commit: latest | ||
commands: | ||
- mkdir /home/user | ||
- cp /sources/init/main.go /home/user/ | ||
- cp /sources/init/go.mod /home/user/ | ||
- cp /sources/init/go.sum /home/user/ | ||
- cp /sources/init/go.work /home/user/ | ||
- cp /sources/init/Makefile /home/user/ | ||
- mv /sources/init/core /home/user/core/ | ||
- mv /sources/init/diff /home/user/diff/ | ||
- mv /sources/init/types /home/user/types/ | ||
- mv /sources/init/vendor /home/user/vendor/ | ||
- rm -rf /sources/init | ||
|
||
- name: install-deps | ||
type: shell | ||
commands: | ||
- apk add gcc musl-dev sqlite make | ||
|
||
- name: build | ||
type: shell | ||
commands: | ||
- cd /home/user | ||
- make | ||
|
||
- name: cleanup | ||
type: shell | ||
commands: | ||
- rm -rf main.go go.mod go.sum go.work Makefile core/ types/ vendor/ |