3 Commits
1.0.0 ... 1.0.3

Author SHA1 Message Date
e54429833b Fix path issues
All checks were successful
CI / build (push) Successful in 40s
2023-11-28 16:50:22 +01:00
ae69bcd48e The official image does not support arm and building it yourself is garbage, so some random image from docker hub is used. Great Work
All checks were successful
CI / build (push) Successful in 52s
2023-11-28 16:47:09 +01:00
675a73e551 Add CI
All checks were successful
CI / build (push) Successful in 51s
2023-11-28 16:14:45 +01:00
2 changed files with 40 additions and 3 deletions

36
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,36 @@
# .github/workflows/ci.yml
name: CI
on:
push:
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
env:
MY_DOCKER_USERNAME: ${{ secrets.MY_DOCKER_USERNAME }}
MY_DOCKER_PASSWORD: ${{ secrets.MY_DOCKER_PASSWORD }}
FORCE_COLOR: 1
steps:
- uses: https://github.com/earthly/actions-setup@v1
with:
version: v0.7.0
- uses: actions/checkout@v2
- name: Put back the git branch into git (Earthly uses it for tagging)
run: |
branch=""
if [ -n "$GITHUB_HEAD_REF" ]; then
branch="$GITHUB_HEAD_REF"
else
branch="${GITHUB_REF##*/}"
fi
git checkout -b "$branch" || true
- name: Docker Login
run: docker login git.hibas.dev --username "$MY_DOCKER_USERNAME" --password "$MY_DOCKER_PASSWORD"
- name: Earthly version
run: earthly --version
- name: Run build
run: cd registry && earthly --push +docker-multi

View File

@ -1,7 +1,8 @@
VERSION 0.7
FROM docker.io/denoland/deno:alpine-1.38.3
FROM docker.io/runcitadel/deno:v1.29.3
WORKDIR /app
docker-multi:
BUILD --platform linux/amd64 --platform linux/arm64 +docker
@ -10,8 +11,8 @@ docker:
COPY public /app/public
COPY deno.json /app/
RUN deno cache --unstable src/registry.ts
CMD [ "run", "-A", "--unstable", "/app/src/registry.ts" ]
RUN /usr/bin/deno cache --unstable src/registry.ts
ENTRYPOINT [ "/usr/bin/deno", "run", "-A", "--unstable", "/app/src/registry.ts" ]
ARG EARTHLY_TARGET_TAG
ARG TAG=$EARTHLY_TARGET_TAG