Skip to content

Commit 5de16d0

Browse files
committed
Moved from Docker to Podman
[GH-64]
1 parent 10066fd commit 5de16d0

File tree

2 files changed

+9
-24
lines changed

2 files changed

+9
-24
lines changed

.github/workflows/pkg_push.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,18 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v4
15-
- name: Login to GitHub Container Registry
16-
uses: docker/login-action@v3
15+
- name: Use Podman Build and Push Action
16+
uses: frozen-tapestry/podman-build-push-action@v1
1717
with:
18-
registry: ghcr.io
19-
username: ${{ github.actor }}
20-
password: ${{ secrets.REGISTRY_TOKEN }}
21-
- name: Docker meta
22-
id: meta
23-
uses: docker/metadata-action@v5
24-
with:
25-
images: ghcr.io/${{ github.repository }}
18+
login_registry: ghcr.io/${{ github.repository }}
19+
login_username: ${{ github.actor }}
20+
login_password: ${{ secrets.REGISTRY_TOKEN }}
21+
dockerfile: ./Containerfile
22+
push: true
2623
labels: |
2724
org.opencontainers.image.title=La Coctelera Backend
2825
org.opencontainers.image.description=Backend Service
2926
tags: |
3027
type=semver,pattern={{version}}
3128
type=semver,pattern={{major}}.{{minor}}
3229
type=ref,enable=true,priority=600,prefix=,suffix=,event=branch
33-
- name: Set up Docker Buildx
34-
uses: docker/setup-buildx-action@v3
35-
- name: Build and Push
36-
uses: docker/build-push-action@v5
37-
with:
38-
context: .
39-
file: ./Dockerfile
40-
push: true
41-
tags: ${{ steps.meta.outputs.tags }}
42-
labels: ${{ steps.meta.outputs.labels }}

Dockerfile renamed to Containerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
# syntax=docker/dockerfile:1
2-
31
# Build stage ---------------
42

5-
FROM rust:1.83.0 AS builder
3+
FROM docker.io/rust:1.85.0 AS builder
64
WORKDIR /app
75
COPY . .
86
ENV SQLX_OFFLINE=true
@@ -11,7 +9,7 @@ RUN cargo build --release
119

1210
# Runtime stage -------------
1311

14-
FROM debian:bookworm-slim AS runtime
12+
FROM docker.io/rust:1.85.0-slim-bookworm AS runtime
1513
WORKDIR /app
1614
RUN apt-get update -y \
1715
&& apt-get install -y --no-install-recommends openssl ca-certificates \

0 commit comments

Comments
 (0)