first push
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 2m18s

This commit is contained in:
Xaver Russ 2025-07-11 12:52:38 +02:00
parent 302c95243f
commit fdd1c07cab
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,35 @@
name: Build and Push Docker Image
run-name: Build and Push Docker Image
on:
push:
branches:
- main
workflow_dispatch: {}
schedule:
- cron: '0 20 * * 5'
jobs:
build-and-push:
runs-on: node
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Forgejo Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.CI_REGISTRY }}
username: ${{ secrets.CI_REGISTRY_USER }}
password: ${{ secrets.CI_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: ${{ secrets.CI_REGISTRY }}/${{ secrets.CI_REPOSITORY }}:latest

7
Dockerfile Normal file
View file

@ -0,0 +1,7 @@
FROM alpine:edge
RUN apk --no-cache add openssh-client ansible nodejs npm
WORKDIR /app
CMD [ "ansible", "--version" ]