Adjust GitHub workflow
This commit is contained in:
parent
9ed04670cd
commit
410592e933
2 changed files with 5 additions and 4 deletions
5
.github/workflows/docker.yaml
vendored
5
.github/workflows/docker.yaml
vendored
|
@ -1,8 +1,9 @@
|
||||||
name: Create and publish a Docker image
|
name: Create and publish a Docker image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types: [published]
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
FROM golang:1.22 AS build-stage
|
FROM golang:1.22-alpine AS build-stage
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy embeded dirs
|
# Copy embeded dirs
|
||||||
|
@ -14,7 +14,7 @@ RUN go mod download
|
||||||
COPY *.go ./
|
COPY *.go ./
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /hibiscus
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /hibiscus
|
||||||
|
|
||||||
FROM alpine:3.19.1 AS deploy-stage
|
FROM alpine:3.20 AS deploy-stage
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
# Bring over the executable
|
# Bring over the executable
|
||||||
|
|
Loading…
Reference in a new issue