Files
nextcloud_ics_sync/.gitea/workflows/dockerfile_runner.yaml
T
pierre.geeraert 7b4a2aa1dc
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 5s
try tha
2026-08-26 10:40:39 +01:00

47 lines
1.5 KiB
YAML

name: Dockerfile runner
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
push:
branches:
- "*"
paths:
- 'dockerfile'
tags-ignore:
- '*'
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to gitea
uses: docker/login-action@v3
with:
registry: gitea.tryton.geeraert.eu
username: ${{ secrets.USERNAME_GITEA }}
password: ${{ secrets.PASSWORD_GITEA }}
- name: check docker config
run: |
cat ~/.docker/config.json
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: gitea.tryton.geeraert.eu/pi-ux-ce/nextcloud_ics_sync:latest
cache-from: type=registry,ref=gitea.tryton.geeraert.eu/pi-ux-ce/nextcloud_ics_sync:buildcache
cache-to: type=registry,ref=gitea.tryton.geeraert.eu/pi-ux-ce/nextcloud_ics_sync:buildcache,mode=max
- run: echo "🍏 This job's status is ${{ job.status }}."