add workflow - define image
All checks were successful
Build and Publish Docker Image / docker (push) Successful in 35s
All checks were successful
Build and Publish Docker Image / docker (push) Successful in 35s
This commit is contained in:
28
.gitea/workflows/build_push.yaml
Normal file
28
.gitea/workflows/build_push.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
name: Build and Publish Docker Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest-intranet
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Login to Docker Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: gitea.psi.ch
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: gitea.psi.ch/${{ github.repository }}:latest
|
13
Dockerfile
13
Dockerfile
@ -0,0 +1,13 @@
|
|||||||
|
FROM alpine:3.22
|
||||||
|
|
||||||
|
WORKDIR /tmp
|
||||||
|
|
||||||
|
RUN apk list -I && apk --no-cache add \
|
||||||
|
libatomic readline readline-dev libxml2 libxml2-dev \
|
||||||
|
ncurses-terminfo-base ncurses-terminfo \
|
||||||
|
libxslt libxslt-dev zlib-dev zlib \
|
||||||
|
ruby ruby-dev yaml yaml-dev \
|
||||||
|
libffi-dev build-base git nodejs \
|
||||||
|
&& gem env \
|
||||||
|
&& gem install etc \
|
||||||
|
&& gem install bundler
|
||||||
|
Reference in New Issue
Block a user