test runner
This commit is contained in:
@@ -46,7 +46,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_RUNNER }}:latest,${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_RUNNER }}:${{ gitea.ref_name }}
|
||||
tags: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_NAME }}:latest,${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ gitea.ref_name }}
|
||||
|
||||
- name: Output
|
||||
run: echo "Runner push on ${{ vars.REGISTRY_DOCKER }} image ${{ vars.DOCKER_IMAGE_RUNNER }} tag ${{ gitea.ref_name }}"
|
||||
run: echo "Runner push on ${{ vars.REGISTRY_DOCKER }} image ${{ vars.DOCKER_IMAGE_NAME }} tag ${{ gitea.ref_name }}"
|
||||
@@ -1,49 +0,0 @@
|
||||
name: ci/cd to build and push docker image wafwoof in private registry
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
# Be carefull, conflict with package-deb *.*.*, don't use more than on dot *.* (ex: 2.5-runner)
|
||||
- '*-waf'
|
||||
|
||||
jobs:
|
||||
build-and-push-debian-runner:
|
||||
# see on runner /data/.runner to add label (test => test:docker://debian:bullseye)
|
||||
# runs-on: test
|
||||
# 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 }}
|
||||
|
||||
|
||||
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: Login to docker private registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars.REGISTRY_DOCKER }}
|
||||
username: ${{ secrets.REGISTRY_DOCKER_USER }}
|
||||
password: ${{ secrets.REGISTRY_DOCKER_PASS }}
|
||||
|
||||
- name: Build and push image in registry
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_WAFWOOF }}:latest,${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_WAFWOOF }}:${{ gitea.ref_name }}
|
||||
|
||||
- name: Output
|
||||
run: echo "Runner push on ${{ vars.REGISTRY_DOCKER }} image ${{ vars.DOCKER_IMAGE_WAFWOOF }} tag ${{ gitea.ref_name }}"
|
||||
@@ -1,6 +1,6 @@
|
||||
name: Gitea Actions Demo
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
on: [push]
|
||||
on: [never]
|
||||
|
||||
## Exemple https://github.com/actions/starter-workflows/blob/main/ci/docker-publish.yml
|
||||
|
||||
|
||||
Reference in New Issue
Block a user