ci: workaround branch error on registry deploy
This commit is contained in:
parent
4e2e591cd4
commit
f13df84fec
@ -17,8 +17,13 @@ jobs:
|
|||||||
DeployService:
|
DeployService:
|
||||||
if: contains(github.event.package.name, 'staging')
|
if: contains(github.event.package.name, 'staging')
|
||||||
runs-on: [frontstaging]
|
runs-on: [frontstaging]
|
||||||
# needs: CreateImage
|
container:
|
||||||
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.1.4-p7
|
image: gitea.pena:3000/penadevops/container-images/node-compose:main
|
||||||
with:
|
env:
|
||||||
runner: frontstaging
|
GITHUB_RUN_NUMBER: "${{ inputs.actionid }}"
|
||||||
actionid: ${{ gitea.run_id }}
|
volumes:
|
||||||
|
- /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: http://gitea.pena:3000/PenaDevops/actions.git/checkout@v1
|
||||||
|
- run: compose -f deployments/staging/docker-compose.yaml up -d
|
||||||
|
@ -2,9 +2,6 @@ services:
|
|||||||
respondent:
|
respondent:
|
||||||
container_name: respondent
|
container_name: respondent
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
image: gitea.pena/squiz/frontanswerer/staging:latest
|
||||||
com.pena.domains: s.hbpn.link
|
|
||||||
com.pena.front_headers: "Access-Control-Allow-Origin $$http_origin always"
|
|
||||||
image: gitea.pena:3000/squiz/frontanswerer/staging:$GITHUB_RUN_NUMBER
|
|
||||||
hostname: respondent
|
hostname: respondent
|
||||||
tty: true
|
tty: true
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"cypress:open": "cypress open",
|
"cypress:open": "cypress open",
|
||||||
"prepublishOnly": "npm run build:package",
|
"prepublishOnly": "npm run build:package",
|
||||||
"deploy": "docker login gitea.pena && docker build -t gitea.pena/squiz/frontanswerer/$(git branch --show-current):latest . && docker push gitea.pena/squiz/frontanswerer/$(git branch --show-current):latest",
|
"deploy": "podman login gitea.pena && podman build -t gitea.pena/squiz/frontanswerer/$(git branch --show-current):latest . && podman push gitea.pena/squiz/frontanswerer/$(git branch --show-current):latest",
|
||||||
"prepare": "husky"
|
"prepare": "husky"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
Loading…
Reference in New Issue
Block a user