Compare commits
8
Commits
c7c3631d8d
..
v0.1.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65621ed484 | ||
|
|
29dd4543c3 | ||
|
|
ef416de1a7 | ||
|
|
d16c9aa5bc | ||
|
|
455d82d0f0 | ||
|
|
182a2f70b6 | ||
|
|
a81e2a89c9 | ||
|
|
2041d42e76 |
@@ -1,8 +1,23 @@
|
|||||||
name: pipeline
|
name: pipeline
|
||||||
|
run-name: ${{ gitea.actor }} is running script
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
on: [push]
|
on: [push]
|
||||||
image: python:3.10
|
image: python:3.10
|
||||||
jobs:
|
jobs:
|
||||||
|
# demo:
|
||||||
|
# runs-on: ubuntu-latest
|
||||||
|
# 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@v3
|
||||||
|
# - 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 }}
|
||||||
|
# - run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -29,12 +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.actor }}"
|
run: docker push ${repository_host}/${repository_name}:${repository_tag}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user