Compare commits

...

38 Commits

Author SHA1 Message Date
dany
c9c817391b Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Has been skipped
2024-07-25 23:15:44 +02:00
dany
88e1345142 Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 27s
Gitea Actions Demo / tag-only-job (push) Has been skipped
2024-07-25 23:10:16 +02:00
dany
2ef040128b Update .gitea/workflows/ci.yml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 26s
Gitea Actions Demo / tag-only-job (push) Has been skipped
2024-07-25 22:45:01 +02:00
dany
a345e39e45 Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Has been skipped
2024-07-25 22:42:42 +02:00
dany
bcde1d7a99 Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Has been skipped
2024-07-25 22:41:02 +02:00
dany
fd54cb244c Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 27s
Gitea Actions Demo / tag-only-job (push) Has been skipped
2024-07-25 22:28:13 +02:00
dany
520aceaf6b Update .gitea/workflows/ci.yml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 27s
Gitea Actions Demo / tag-only-job (push) Has been skipped
2024-07-25 22:19:00 +02:00
dany
ba0572d51a Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Has been skipped
2024-07-24 17:28:36 +02:00
dany
aeea0c6445 Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Successful in 17s
2024-07-24 17:26:37 +02:00
dany
9791588152 Update .gitea/workflows/ci.yml 2024-07-24 17:25:50 +02:00
dany
38f08bc258 Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Successful in 17s
2024-07-24 17:16:31 +02:00
dany
69382199ef Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Successful in 17s
2024-07-24 17:13:26 +02:00
dany
0804c24eca Update .gitea/workflows/ci.yml 2024-07-24 17:13:06 +02:00
dany
3ad8773dec Update .gitea/workflows/ci.yml 2024-07-24 17:12:05 +02:00
dany
512e98c9b4 Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Successful in 17s
2024-07-24 17:03:24 +02:00
dany
8fbabca71b Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Successful in 18s
2024-07-24 17:00:54 +02:00
dany
2ab6187348 Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Successful in 1m12s
2024-07-24 16:42:57 +02:00
dany
87db27a4dc Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 27s
Gitea Actions Demo / tag-only-job (push) Successful in 43s
2024-07-24 16:11:26 +02:00
dany
1edde55597 Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 26s
Gitea Actions Demo / tag-only-job (push) Successful in 40s
2024-07-24 15:53:31 +02:00
dany
6d061ec02d Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Successful in 13s
2024-07-24 15:50:21 +02:00
dany
e0fd9012ee Update .gitea/workflows/ci.yml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Failing after 15s
2024-07-24 15:48:59 +02:00
dany
b5971ce977 Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 29s
Gitea Actions Demo / tag-only-job (push) Successful in 49s
2024-07-24 15:46:26 +02:00
dany
2bb6b5183b Update .gitea/workflows/ci.yml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 27s
Gitea Actions Demo / tag-only-job (push) Failing after 46s
2024-07-24 15:22:11 +02:00
dany
9df180310e Update .gitea/workflows/ci.yml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Failing after 27s
2024-07-24 15:12:17 +02:00
dany
5a29794580 Update .gitea/workflows/ci.yml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
Gitea Actions Demo / tag-only-job (push) Failing after 2s
2024-07-24 15:06:42 +02:00
dany
644b84c138 Update .gitea/workflows/ci.yml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
Gitea Actions Demo / tag-only-job (push) Failing after 13s
2024-07-24 15:03:44 +02:00
dany
bdb2dddf6d Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Successful in 4s
2024-07-24 13:30:31 +02:00
dany
03354c5ec1 Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Has been skipped
2024-07-24 13:30:17 +02:00
dany
d36ef2bdec Update .gitea/workflows/ci.yml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / tag-only-job (push) Failing after 12s
2024-07-24 13:27:31 +02:00
dany
0127b5f87d Update .gitea/workflows/ci.yml
All checks were successful
Gitea Actions Demo / tag-only-job (push) Successful in 2s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
2024-07-24 13:14:12 +02:00
dany
638a84e500 Update .gitea /workflows/ci.yml 2024-07-24 13:11:55 +02:00
dany
c0559a885e Add .gitea /workflows/ci.yml 2024-07-24 13:05:32 +02:00
dany
3b40d7099d Update 'Jenkinsfile'
Some checks failed
test-multi-branches/pipeline/head There was a failure building this commit
gitea-sync/test/pipeline/head There was a failure building this commit
2023-06-09 11:29:40 +02:00
dany
ed6b83b8eb Update 'Jenkinsfile'
Some checks failed
test-multi-branches/pipeline/head There was a failure building this commit
gitea-sync/test/pipeline/head There was a failure building this commit
2023-06-09 11:28:32 +02:00
dany
025aef48c4 Update 'Jenkinsfile'
Some checks failed
gitea-sync/test/pipeline/head There was a failure building this commit
test-multi-branches/pipeline/head There was a failure building this commit
2023-06-09 11:26:56 +02:00
dany
1b85eab0f0 Update 'Jenkinsfile'
Some checks failed
gitea-sync/test/pipeline/head There was a failure building this commit
test-multi-branches/pipeline/head There was a failure building this commit
2023-06-09 11:19:48 +02:00
dany
a16cba09b4 Update 'Jenkinsfile'
All checks were successful
test-multi-branches/pipeline/head This commit looks good
gitea-sync/test/pipeline/head This commit looks good
2022-09-29 19:01:43 +02:00
dany
dc909e7069 Update 'test.sh'
All checks were successful
test-multi-branches/pipeline/head This commit looks good
gitea-sync/test/pipeline/head This commit looks good
2022-09-21 11:54:32 +02:00
3 changed files with 73 additions and 33 deletions

67
.gitea/workflows/ci.yml Normal file
View File

@ -0,0 +1,67 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ci-tools
container:
image: iohubdev/ci-tools:latest
volumes:
- /opt/public/:/public/
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- 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."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
mkdir build
echo "tests" > build/application
- name: test volumn
run: |
ls -al /public/
echo "tests" > /public/application
- name: Save artifact
uses: actions/upload-artifact@v3
with:
name: build
path: build/
retention-days: 1
- run: echo "🍏 This job's status is ${{ job.status }}."
tag-only-job:
runs-on: act-runner
if: gitea.event_name == 'push' && contains(gitea.ref, 'refs/tags/')
needs: Explore-Gitea-Actions
container:
image: catthehacker/ubuntu:act-latest
steps:
- run: mkdir -p build
- uses: actions/download-artifact@master
with:
name: build
path: build
- name: env
run: |
printenv
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ gitea.ref_name }}"
ls -al .
ls -al build
- name: Set up QEMU
uses: docker/setup-qemu-action@master
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@master
- name: Login to DockerHub
uses: docker/login-action@master
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PAT }}
- name: Release
run: |
curl --header "Authorization: token ${{ secrets.GT_API_PAT }}" -v --upload-file build/application https://git.iohub.dev/api/packages/dany/generic/test_package/1.0.0/application
- run: docker info

37
Jenkinsfile vendored
View File

@ -1,15 +1,5 @@
def remote = [:]
remote.name = 'workstation'
remote.host = 'workstation'
remote.user = 'dany'
remote.identityFile = '/var/jenkins_home/.ssh/id_rsa'
remote.allowAnyHosts = true
remote.agent = false
remote.logLevel = 'INFO'
pipeline{
agent { node{ label'master' }}
agent { node{ label'workstation' }}
options {
// Limit build history with buildDiscarder option:
// daysToKeepStr: history is only kept up to this many days.
@ -44,32 +34,15 @@ pipeline{
sh '''
printenv
uname -a
exit 1
'''
}
}
stage('Remote SSH') {
steps {
sh'''
export -p | tee env.source
cat <<"EOF" >>env.source
printenv
EOF
'''
sshCommand remote: remote, command: '''#! /bin/bash
set -e
echo $WORKSPACE
pwd
export WORKSPACE="jenkins/workspace/test"
cd $WORKSPACE
bash test.sh
'''
sshScript remote: remote, script: "env.source"
sshCommand remote: remote, command: '''#! /bin/bash
for i in {1..5}; do
echo -n "Loop $i ";
date ;
sleep 1;
done
printenv
uname -a
'''
}
}
@ -78,7 +51,7 @@ EOF
//always {}
//success {}
failure {
mail bcc: '', body: "<b>Failure</b><br><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> Build URL: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', from: '', mimeType: 'text/html', replyTo: '', subject: "ERROR CI: ${env.JOB_NAME}", to: "mrsang@iohub.dev";
mail bcc: '', body: "<b>Failure</b><br><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> Build URL: ${env.BUILD_URL}", cc: '', charset: 'UTF-8', mimeType: 'text/html', replyTo: '', subject: "ERROR CI: ${env.JOB_NAME}", from: "dany@iohub.dev", to: "dany@iohub.dev";
}
//unstable {}
//changed {}

View File

@ -1,5 +1,5 @@
#! /bin/bash
echo "test script with webhook trigger"
pwd
# didn't work
# should work
tree .