Compare commits
2
Commits
2d9b06be5d
...
a8dae35cd0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8dae35cd0 | ||
|
|
b62fb0c4fa |
@@ -4,13 +4,6 @@ runs-on: ubuntu-latest
|
|||||||
on: [push]
|
on: [push]
|
||||||
image: python:3.10
|
image: python:3.10
|
||||||
jobs:
|
jobs:
|
||||||
show-gitea-ref:
|
|
||||||
name: Show Gitea.ref
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Show
|
|
||||||
run: echo "${{ gitea.ref }}"
|
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -39,11 +32,11 @@ jobs:
|
|||||||
repository_host: 192.168.1.2:5000
|
repository_host: 192.168.1.2:5000
|
||||||
repository_name: ${{ gitea.repository }}
|
repository_name: ${{ gitea.repository }}
|
||||||
repository_version: v1.0
|
repository_version: v1.0
|
||||||
tag: ${repository_name}:${repository_version}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
tag=${repository_name}:${repository_version}
|
||||||
echo "tagging image with ${tag}"
|
echo "tagging image with ${tag}"
|
||||||
docker build . --file Dockerfile --tag $tag
|
docker build . --file Dockerfile --tag $tag
|
||||||
- name: Tag
|
- name: Tag
|
||||||
|
|||||||
Reference in New Issue
Block a user