45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
name: image puller runner
|
|
run-name: Pull and Push 🚀
|
|
on:
|
|
push:
|
|
workflow_dispatch: # Enables the manual run UI button
|
|
|
|
jobs:
|
|
Explore-Gitea-Actions:
|
|
env:
|
|
RUNNER_TOOL_CACHE: /toolcache
|
|
DEBUG: True
|
|
ALLOWED_HOSTS: "django.tryton.geeraert.eu"
|
|
container:
|
|
image: gitea.tryton.geeraert.eu/pi-ux-ce/custom-runner-debian-slim:1.0.6
|
|
volumes:
|
|
- act-toolcache:/opt/hostedtoolcache # this is where Runner store their cache default
|
|
runs-on: host-runner
|
|
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
|
|
|
|
- name: List files in the repository
|
|
run: |
|
|
ls ${{ gitea.workspace }}
|
|
|
|
- name: cat list
|
|
run: |
|
|
cat image_list.txt
|
|
|
|
- name: Login to gitea
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.tryton.geeraert.eu
|
|
username: ${{ secrets.USERNAME_GITEA }}
|
|
password: ${{ secrets.PASSWORD_GITEA }}
|
|
|
|
# - name: Push image
|
|
# run: |
|
|
# docker push gitea.tryton.geeraert.eu/pi-ux-ce/django-python:latest
|
|
# docker push gitea.tryton.geeraert.eu/pi-ux-ce/django-python:${{ env.next_version }}
|
|
|