Skip to content

Commit

Permalink
minor: fix ghcr issue
Browse files Browse the repository at this point in the history
  • Loading branch information
FMotalleb committed Jul 2, 2024
1 parent e8bd07f commit ca45d6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release-gh-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,18 @@ jobs:
with:
context: .
push: true
tags: "${{ steps.meta.outputs.tags }}-slim"
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}-slim
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-slim
target: "slim"
labels: ${{ steps.meta.outputs.labels }}
- name: Build and push Docker image Static (distroless)
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: "${{ steps.meta.outputs.tags }}-static"
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}-static
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-static
labels: ${{ steps.meta.outputs.labels }}
target: "static"
5 changes: 0 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
FROM golang:latest AS builder

RUN mkdir /app

COPY go.mod /app/
COPY go.sum /app/

WORKDIR /app

RUN go mod download

COPY ./ /app

RUN CGO_ENABLED=0 go build -o crontab-go
RUN chmod +x crontab-go

Expand Down

0 comments on commit ca45d6c

Please sign in to comment.