Skip to content

Commit

Permalink
ci: Enabling image pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
trygvis committed Dec 29, 2024
1 parent f6b3652 commit 78c9aaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
DATABASE_URL: postgres://skjera-owner:skjera-owner@localhost/skjera
DEBIAN_FRONTEND: noninteractive

jobs:
build:
Expand Down Expand Up @@ -67,9 +68,6 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
# push: ${{ github.event_name != 'pull_request' }}
push: false
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
# tags: ${{ github.event. }}/${{ github.event.repository.name }}:${{ steps.extract_branch.outputs.branch }}
# tags: foo
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
FROM rust:1.83-bullseye AS builder

ARG BUILD_ARGS=""
ARG DEBIAN_FRONTEND=noninteractive

WORKDIR /builder

Expand All @@ -20,10 +19,11 @@ RUN cargo build $BUILD_ARGS
FROM debian:bullseye AS app

ARG TARGET_DIR="debug"
ARG DEBIAN_FRONTEND=noninteractive

WORKDIR /app

RUN apt-get update && apt install --no-install-recommends --yes ca-certificates
RUN apt-get update && apt-get install --no-install-recommends --yes ca-certificates
COPY --from=builder /builder/target/$TARGET_DIR/skjera /
COPY --from=builder /builder/backend/assets ./assets

Expand Down

0 comments on commit 78c9aaf

Please sign in to comment.