Add gitea workflow
This commit is contained in:
26
.gitea/workflows/wasm-docker.yaml
Normal file
26
.gitea/workflows/wasm-docker.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Build WASM Base Docker Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [disabled]
|
||||||
|
# branches: [main]
|
||||||
|
# paths:
|
||||||
|
# - ".gitea/workflows/wasm-docker.yaml"
|
||||||
|
# - "wasm-base.dockerfile"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
wasm-docker:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Login to container registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: gitea.vps.chriphost.de
|
||||||
|
username: ${{ secrets.CONTAINER_REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
|
||||||
|
- name: Build WASM Base Docker Image
|
||||||
|
run: docker build --file wasm-base.dockerfile --tag gitea.vps.chriphost.de/christoph/wasm-base:latest .
|
||||||
|
- name: Push WASM Base Docker Image
|
||||||
|
run: docker push gitea.vps.chriphost.de/christoph/wasm-base:latest
|
||||||
9
Makefile
9
Makefile
@ -1,11 +1,14 @@
|
|||||||
docker:
|
docker:
|
||||||
docker build -t wasm-base -f wasm-base.dockerfile . --build-arg CACHE_DATE="$(shell date)"
|
docker build -t gitea.vps.chriphost.de/christoph/wasm-base:latest -f wasm-base.dockerfile . --build-arg CACHE_DATE="$(shell date)"
|
||||||
|
|
||||||
run:
|
run:
|
||||||
docker run --rm -it wasm-base:latest /usr/bin/fish
|
docker run --rm -it gitea.vps.chriphost.de/christoph/wasm-base:latest /usr/bin/fish
|
||||||
|
|
||||||
run-external:
|
run-external:
|
||||||
docker run --rm -it -v "./examples:/home/ubuntu/examples" wasm-base:latest /usr/bin/fish
|
docker run --rm -it -v "./examples:/home/ubuntu/examples" gitea.vps.chriphost.de/christoph/wasm-base:latest /usr/bin/fish
|
||||||
|
|
||||||
bochs:
|
bochs:
|
||||||
|
bochs -f ./examples/arch/bochs/bochsrc-docker.txt -q
|
||||||
|
|
||||||
|
bochs-host:
|
||||||
nix shell nixpkgs#bochs --command sh -c "bochs -f ./examples/arch/bochs/bochsrc-host.txt -q"
|
nix shell nixpkgs#bochs --command sh -c "bochs -f ./examples/arch/bochs/bochsrc-host.txt -q"
|
||||||
|
|||||||
@ -152,6 +152,7 @@ RUN apt-get update \
|
|||||||
grub-common \
|
grub-common \
|
||||||
xorriso \
|
xorriso \
|
||||||
grub-pc-bin \
|
grub-pc-bin \
|
||||||
|
bochs \
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
|
||||||
COPY --from=wamr-builder /wamrlib /opt/wamr
|
COPY --from=wamr-builder /wamrlib /opt/wamr
|
||||||
|
|||||||
Reference in New Issue
Block a user