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