Remove CI/CD workflow and Dockerfile
This commit is contained in:
parent
5c83dadee3
commit
911011ac44
2 changed files with 0 additions and 58 deletions
|
|
@ -1,37 +0,0 @@
|
||||||
name: Build & Push Docker Image
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install Docker CLI
|
|
||||||
run: |
|
|
||||||
apt-get update -qq && apt-get install -y -qq docker.io
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Login to Forgejo Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.moritz.run
|
|
||||||
username: ${{ secrets.REGISTRY_USER }}
|
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
push: true
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
tags: git.moritz.run/helios/helios-remote:latest
|
|
||||||
cache-from: type=registry,ref=git.moritz.run/helios/helios-remote:buildcache
|
|
||||||
cache-to: type=registry,ref=git.moritz.run/helios/helios-remote:buildcache,mode=max
|
|
||||||
21
Dockerfile
21
Dockerfile
|
|
@ -1,21 +0,0 @@
|
||||||
# Build stage
|
|
||||||
FROM rust:1.82-alpine AS builder
|
|
||||||
|
|
||||||
RUN apk add --no-cache musl-dev
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN cargo build --release --bin helios-remote-relay
|
|
||||||
|
|
||||||
# Runtime stage
|
|
||||||
FROM alpine:3.20
|
|
||||||
|
|
||||||
RUN apk add --no-cache ca-certificates
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
COPY --from=builder /app/target/release/helios-remote-relay .
|
|
||||||
|
|
||||||
EXPOSE 8080
|
|
||||||
|
|
||||||
CMD ["./helios-remote-relay"]
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue