Compare commits
10 Commits
1.0-waf
...
1.1-runner
| Author | SHA1 | Date | |
|---|---|---|---|
| 6445cfac59 | |||
| c223a84285 | |||
| 93a478a8b8 | |||
| c2ee52ac4d | |||
| a23671e961 | |||
| 745e2378af | |||
| bee8958456 | |||
| 0d58811815 | |||
| 7ae17012da | |||
| 73bd9a4581 |
@@ -16,12 +16,12 @@ jobs:
|
|||||||
# container: debian:bullseye
|
# container: debian:bullseye
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
# container: node:16-bullseye
|
# container: node:16-bullseye
|
||||||
runs-on: debian-runner
|
runs-on: docker:dind
|
||||||
container:
|
# container:
|
||||||
image: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_RUNNER }}:latest
|
# image: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_RUNNER }}:latest
|
||||||
credentials:
|
# credentials:
|
||||||
username: ${{ secrets.REGISTRY_DOCKER_USER }}
|
# username: ${{ secrets.REGISTRY_DOCKER_USER }}
|
||||||
password: ${{ secrets.REGISTRY_DOCKER_PASS }}
|
# password: ${{ secrets.REGISTRY_DOCKER_PASS }}
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -31,10 +31,11 @@ jobs:
|
|||||||
username: ${{ secrets.REGISTRY_DOCKER_USER }}
|
username: ${{ secrets.REGISTRY_DOCKER_USER }}
|
||||||
password: ${{ secrets.REGISTRY_DOCKER_PASS }}
|
password: ${{ secrets.REGISTRY_DOCKER_PASS }}
|
||||||
|
|
||||||
- name: git clone repo
|
- name: clone & build & push
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/EnableSecurity/wafw00f
|
git clone https://github.com/EnableSecurity/wafw00f
|
||||||
docker buildx b ./wafw00f/Dockerfile -t ${{ vars.DOCKER_IMAGE_WAFWOOF }}
|
cd wafw00f
|
||||||
|
docker buildx b . -t ${{ vars.DOCKER_IMAGE_WAFWOOF }}
|
||||||
docker tag ${{ vars.DOCKER_IMAGE_WAFWOOF }} ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_WAFWOOF }}
|
docker tag ${{ vars.DOCKER_IMAGE_WAFWOOF }} ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_WAFWOOF }}
|
||||||
docker push ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_WAFWOOF }}
|
docker push ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_WAFWOOF }}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ env:
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*.*.[0-9]'
|
- '*-samplescript'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-package-push-repo:
|
build-package-push-repo:
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
name: Gitea Actions Demo
|
name: Gitea Actions Demo
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
on: [never]
|
# on: [push]
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
## Exemple https://github.com/actions/starter-workflows/blob/main/ci/docker-publish.yml
|
## Exemple https://github.com/actions/starter-workflows/blob/main/ci/docker-publish.yml
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -13,9 +16,10 @@ jobs:
|
|||||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
||||||
- run: echo "lala"
|
|
||||||
- run: echo "${{ vars.TEST }}"
|
|
||||||
- name: List files in the repository
|
|
||||||
run: |
|
|
||||||
ls ${{ gitea.workspace }}
|
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
|
- name: Git clone private repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: staffadmin/semaphore
|
||||||
|
ref: main
|
||||||
|
token: ${{ secrets.REPO_PULL_GITEA }}
|
||||||
Reference in New Issue
Block a user