Compare commits
6 Commits
a15be35063
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
15976fba07 | ||
|
|
ea88d28ab6 | ||
|
|
e2abcd15fa | ||
|
|
9a6ac74d5c | ||
|
|
e5e03b55f9 | ||
|
|
d9de6b84cc |
@@ -1,5 +1,4 @@
|
|||||||
name: Build And Test
|
name: Build And Test
|
||||||
run-name: ${{ gitea.actor }} is runs ci pipeline
|
|
||||||
on: [ push ]
|
on: [ push ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -20,10 +19,9 @@ jobs:
|
|||||||
|
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
if: gitea.ref == 'refs/heads/develop'
|
||||||
if: gitea.ref == 'refs/heads/main'
|
|
||||||
steps:
|
steps:
|
||||||
- uses: https://github.com/actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
# - name: Set up Docker Buildx
|
# - name: Set up Docker Buildx
|
||||||
# uses: https://github.com/docker/setup-buildx-action@v3
|
# uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
# with:
|
# with:
|
||||||
@@ -32,10 +30,10 @@ jobs:
|
|||||||
# http = true
|
# http = true
|
||||||
# insecure = true
|
# insecure = true
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: https://github.com/docker/build-push-action@v5
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: "private-registry:5000/python-locust-example:${{gitea.sha}},private-registry:5000/python-locust-example:latest"
|
tags: "d.lilpenguins.com/python-locust-example:${{gitea.sha}},d.lilpenguins.com/python-locust-example:latest"
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM docker.apple.com/piedss/locust-2:2.7.0.6
|
FROM locustio/locust:2.37.1
|
||||||
|
|
||||||
RUN mkdir -p /home/locust/tests/
|
RUN mkdir -p /home/locust/tests/
|
||||||
ADD test_example.py /home/locust/tests/
|
ADD test_example.py /home/locust/tests/
|
||||||
|
|||||||
Reference in New Issue
Block a user