Add action
Some checks failed
Deploy / deploy (push) Failing after 1s

This commit is contained in:
Hugo Mårdbrink 2025-12-03 21:18:37 +01:00
parent 65ff41d412
commit b0f6ba7390
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,18 @@
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: native
steps:
- uses: actions/checkout@v4
- name: Build and deploy
run: |
podman build -t hugo-home:latest .
podman stop hugo-home 2>/dev/null || true
podman rm hugo-home 2>/dev/null || true
podman run -d --name hugo-home --restart=always -p 127.0.0.1:8080:8080 hugo-home:latest

View file

@ -1,4 +1,4 @@
FROM golang:1.22.3-alpine AS builder
FROM docker.io/library/golang:1.22.3-alpine AS builder
WORKDIR /app