name
Some checks failed
Build and Deploy / Build & Push Image (push) Failing after 6s

This commit is contained in:
2026-03-16 13:20:04 -06:00
parent 7471d02b83
commit cf09588c71
3 changed files with 19 additions and 3 deletions

View File

@@ -32,12 +32,12 @@ jobs:
- name: Build and push image
id: build
run: |
IMAGE="${{ env.REGISTRY }}/alexmickelson/cobblemon:${{ github.run_number }}"
IMAGE="${{ env.REGISTRY }}/alex/cobblemon:${{ github.run_number }}"
docker build --push -t "${IMAGE}" .
- name: Deploy
run: |
IMAGE="${{ env.REGISTRY }}/alexmickelson/cobblemon:${{ github.run_number }}"
IMAGE="${{ env.REGISTRY }}/alex/cobblemon:${{ github.run_number }}"
kubectl get secret cobblemon-ui-secret --namespace=cobblemon 2>/dev/null || \
kubectl create secret generic cobblemon-ui-secret \

14
dev.dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM hexpm/elixir:1.18.4-erlang-26.2.5.18-debian-bookworm-20260223-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
curl \
inotify-tools \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN mix local.hex --force && mix local.rebar --force
ENV MIX_ENV=dev

View File

@@ -1,6 +1,8 @@
services:
web:
build: .
build:
context: .
dockerfile: dev.dockerfile
ports:
- "4000:4000"
environment: