Adjust GitHub workflow

This commit is contained in:
Andrew-71 2024-06-02 01:22:08 +03:00
parent 9ed04670cd
commit 410592e933
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -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