fix act_runner build job
All checks were successful
Build docker image and push to registry.bitdeals.org / main-build-job (push) Successful in 1m46s
All checks were successful
Build docker image and push to registry.bitdeals.org / main-build-job (push) Successful in 1m46s
This commit is contained in:
@@ -17,6 +17,8 @@ jobs:
|
|||||||
REPOSITORY: ${{ gitea.repository }}
|
REPOSITORY: ${{ gitea.repository }}
|
||||||
#registry.bitdeals.org
|
#registry.bitdeals.org
|
||||||
REGISTRY: 10.0.3.111:5000
|
REGISTRY: 10.0.3.111:5000
|
||||||
|
USER: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
PASS: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository code
|
- name: Checkout repository code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
@@ -25,10 +27,13 @@ jobs:
|
|||||||
docker build . \
|
docker build . \
|
||||||
--file "$(find ./Dockerfile ./docker/Dockerfile -print -quit 2>/dev/null)" \
|
--file "$(find ./Dockerfile ./docker/Dockerfile -print -quit 2>/dev/null)" \
|
||||||
--label "git-commit=$COMMIT" \
|
--label "git-commit=$COMMIT" \
|
||||||
--tag "$REGISTRY"/"${REPOSITORY##*/}":"$VERSION"."${COMMIT::7}" \
|
--tag "${REGISTRY}/${REPOSITORY##*/}:${VERSION}.${COMMIT::7}" \
|
||||||
--tag "$REGISTRY"/"${REPOSITORY##*/}":latest
|
--tag "${REGISTRY}/${REPOSITORY##*/}:latest"
|
||||||
|
- name: Docker login
|
||||||
|
run: |
|
||||||
|
docker login --username "$USER" --password "$PASS" "$REGISTRY"
|
||||||
- name: Push images to registry
|
- name: Push images to registry
|
||||||
run: |
|
run: |
|
||||||
docker push "$REGISTRY"/${REPOSITORY##*/}:$VERSION.${COMMIT::7} ; \
|
docker push "${REGISTRY}/${REPOSITORY##*/}:${VERSION}.${COMMIT::7}" ; \
|
||||||
docker push "$REGISTRY"/${REPOSITORY##*/}:latest
|
docker push "${REGISTRY}/${REPOSITORY##*/}:latest"
|
||||||
|
|
||||||
|
|||||||
14
etc/nginx/http.d/trac.conf
Normal file
14
etc/nginx/http.d/trac.conf
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
server {
|
||||||
|
server_name _;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://localhost:8055;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
|
||||||
|
listen 80;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user