Compare commits

...
5 Commits
Author SHA1 Message Date
brb 65621ed484 updated deploy job steps
pipeline / Deploy (push) Has been skipped
pipeline / Test (push) Successful in 38s
2023-07-11 16:46:51 +02:00
brb 29dd4543c3 updated deploy job steps
pipeline / Test (push) Successful in 1m2s
pipeline / Deploy (push) Failing after 5s
2023-07-11 16:39:49 +02:00
brb ef416de1a7 updated deploy job steps
pipeline / Deploy (push) Failing after 6s
pipeline / Test (push) Successful in 38s
2023-07-11 16:35:21 +02:00
brb d16c9aa5bc changed command
pipeline / Test (push) Successful in 39s
pipeline / Deploy (push) Successful in 5s
2023-07-11 15:55:38 +02:00
brb 455d82d0f0 removed comment
pipeline / demo (push) Successful in 6s
pipeline / Test (push) Successful in 39s
pipeline / Deploy (push) Successful in 49s
2023-07-11 15:41:15 +02:00
+24 -22
View File
@@ -4,20 +4,20 @@ runs-on: ubuntu-latest
on: [push] on: [push]
image: python:3.10 image: python:3.10
jobs: jobs:
demo: # demo:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." # - 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 "🐧 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 }}." # - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code # - name: Check out repository code
uses: actions/checkout@v3 # uses: actions/checkout@v3
- 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."
- name: List files in the repository # - name: List files in the repository
run: | # run: |
ls ${{ gitea.workspace }} # ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}." # - run: echo "🍏 This job's status is ${{ job.status }}."
test: test:
name: Test name: Test
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -44,14 +44,16 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [test] needs: [test]
if: gitea.ref == 'refs/heads/release' if: gitea.ref == 'refs/heads/release'
env:
repository_host: 192.168.1.2:5000
repository_name: ${{ gitea.repository }}
repository_tag: latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Build image - name: Build
run: | run: docker build . --file Dockerfile --tag ${repository_name}:${repository_tag}
# docker build . --file Dockerfile --tag ${{}} - name: Tag
echo "test message" run: docker tag ${repository_name}:${repository_tag} ${repository_host}/${repository_name}:${repository_tag}
echo "below follows gitea.actor:" - name: Push
echo "${{ gitea.repository }}" run: docker push ${repository_host}/${repository_name}:${repository_tag}
docker build . --file Dockerfile --tag ${{ gitea.repository }}
echo docker images