@@ -12,7 +12,7 @@ permissions:
12
12
jobs :
13
13
validate :
14
14
name : Symfony (PHP ${{ matrix.php-versions }})
15
- runs-on : self-hosted
15
+ runs-on : ubuntu-latest
16
16
17
17
# Docs: https://docs.github.com/en/actions/using-containerized-services
18
18
services :
84
84
# run: simple-phpunit --coverage-text
85
85
deploy :
86
86
name : Deploy image
87
- runs-on : self-hosted
87
+ runs-on : ubuntu-latest
88
88
needs : validate
89
89
steps :
90
90
- uses : actions/checkout@v4
@@ -101,16 +101,10 @@ jobs:
101
101
with :
102
102
context : .
103
103
push : true
104
- tags : registry.realt.community/symfony-php- api-realt :${{ github.ref_name }}
104
+ tags : ${{ secrets.DOCKER_REGISTRY }}/ api-php :${{ github.ref_name }}
105
105
106
106
- name : Configure SSH
107
107
run : |
108
- if "${{ github.ref_name }}" == "alpha"
109
- then
110
- echo "alpha-branch"
111
- else
112
- echo "not alpha-branch"
113
- fi
114
108
mkdir -p ~/.ssh/
115
109
echo "$SSH_KEY" > ~/.ssh/staging.key
116
110
chmod 600 ~/.ssh/staging.key
@@ -130,10 +124,10 @@ jobs:
130
124
131
125
- name : Update alpha environment
132
126
run : |
133
- ssh staging 'export DOCKER_BRANCH=${{ github.ref_name }}
134
- cd /home/realt/ docker/api/${DOCKER_BRANCH}-git
127
+ ssh staging 'export DOCKER_BRANCH=${{ github.ref_name }} DOCKER_REGISTRY=${{ secrets.DOCKER_REGISTRY }}
128
+ cd /var/ docker/api/${DOCKER_BRANCH}
135
129
git pull origin ${{ github.ref_name }}
136
- docker compose --file docker-compose. ${{ github.ref_name }}.yml pull
130
+ docker compose --file docker-compose- ${{ github.ref_name }}.yml pull
137
131
docker login -u ${{ secrets.DOCKER_LOGIN }} -p ${{ secrets.DOCKER_PASSWD }} ${{ secrets.DOCKER_REGISTRY }}
138
- docker compose --project-name ${{ github.ref_name }}_php-api --file docker-compose. ${{ github.ref_name }}.yml up -d'
132
+ docker compose --project-name ${{ github.ref_name }}-api_php --file docker-compose- ${{ github.ref_name }}.yml up -d'
139
133
# Add migration !?
0 commit comments