Compare commits

...

4 Commits

Author SHA1 Message Date
dec1e12add [test runner] 2024-11-23 16:41:06 +01:00
5aee8beff8 [test runner] 2024-11-23 16:35:48 +01:00
18fc839376 [test runner] 2024-11-23 16:30:07 +01:00
6445cfac59 [test build_push] 2024-11-23 16:12:26 +01:00
3 changed files with 21 additions and 13 deletions

View File

@@ -16,23 +16,25 @@ jobs:
# container: debian:bullseye
# runs-on: ubuntu-latest
# container: node:16-bullseye
runs-on: debian-runner
container:
image: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_RUNNER }}:latest
credentials:
username: ${{ secrets.REGISTRY_DOCKER_USER }}
password: ${{ secrets.REGISTRY_DOCKER_PASS }}
runs-on: ubuntu-runner
container:
image: docker:dind
# container:
# image: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_RUNNER }}:latest
# credentials:
# username: ${{ secrets.REGISTRY_DOCKER_USER }}
# password: ${{ secrets.REGISTRY_DOCKER_PASS }}
steps:
- name: Show Information
run: echo "Runner ${{ runner.os }} working on repository ${{ gitea.repository }} and on tag ${{ gitea.ref_name }}"
- name: Git clone private repository
uses: actions/checkout@v4
with:
repository: ${{ gitea.repository }}
token: ${{ secrets.REPO_PULL_GITEA }}
# - name: Git clone private repository
# uses: actions/checkout@v4
# with:
# repository: ${{ gitea.repository }}
# token: ${{ secrets.REPO_PULL_GITEA }}
- name: Login to docker private registry
uses: docker/login-action@v3
@@ -41,6 +43,9 @@ jobs:
username: ${{ secrets.REGISTRY_DOCKER_USER }}
password: ${{ secrets.REGISTRY_DOCKER_PASS }}
- run: git --help
- name: Build and push image in registry
uses: docker/build-push-action@v5
with:

View File

@@ -1,7 +1,10 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
# on: [push]
on:
push:
tags:
- '*'
## Exemple https://github.com/actions/starter-workflows/blob/main/ci/docker-publish.yml
jobs: