Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 27132df466 | |||
| bbaa7e0886 | |||
| 5d10495260 | |||
| d4a8c685e7 |
@@ -12,6 +12,8 @@ jobs:
|
|||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- 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 "Token ${{ secrets.GITEA_TOKEN }}"
|
||||||
|
- run: echo "REF ${{ gitea.ref }}"
|
||||||
- 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: |
|
||||||
@@ -20,6 +22,27 @@ jobs:
|
|||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
|
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Create Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
||||||
|
with:
|
||||||
|
tag_name: ${{ gitea.ref }}
|
||||||
|
release_name: Release ${{ gitea.ref }}
|
||||||
|
body: |
|
||||||
|
Changes in this Release
|
||||||
|
- First Change
|
||||||
|
- Second Change
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
|
||||||
build website:
|
build website:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -37,12 +60,17 @@ jobs:
|
|||||||
uses: docker/build-push-action@v7
|
uses: docker/build-push-action@v7
|
||||||
with:
|
with:
|
||||||
context: ./website/
|
context: ./website/
|
||||||
|
file: ./Dockerfile
|
||||||
|
allow: network.host,security.insecure
|
||||||
push: true
|
push: true
|
||||||
tags: git.mnl-lab.de/${{gitea.repository_owner}}/camera-crawler_website:latest
|
tags: git.mnl-lab.de/${{gitea.repository_owner}}/camera-crawler_website:latest
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v7
|
uses: docker/build-push-action@v7
|
||||||
with:
|
with:
|
||||||
|
TOKEN: ${{ secrets.GITEA_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
||||||
context: ./crawler/
|
context: ./crawler/
|
||||||
|
file: ./Dockerfile
|
||||||
|
allow: network.host,security.insecure
|
||||||
push: true
|
push: true
|
||||||
tags: git.mnl-lab.de/${{gitea.repository_owner}}/camera-crawler_crawler:latest
|
tags: git.mnl-lab.de/${{gitea.repository_owner}}/camera-crawler_crawler:latest
|
||||||
Reference in New Issue
Block a user