Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/build_deploy_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,14 @@ jobs:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
images: 'ghcr.io/${{ env.REPO }}-azure:${{ github.sha }}'
- name: Drush deploy
run: |
az webapp create-remote-connection \
--resource-group drupal-example-stirred-dove \
--name drupal-example-precious-seasnail \
--port 16385 &
sleep 30
sshpass -pDocker\! ssh root@127.0.0.1 -m hmac-sha1 -p 16385 -o "StrictHostKeyChecking no" /var/www/vendor/bin/drush deploy

e2e_test:
name: Feature tests
Expand Down
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# check=skip=SecretsUsedInArgOrEnv

FROM ghcr.io/uceap/devcontainer-drupal:v2.3.0

# Install SSH server
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y openssh-server \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* \
&& echo "Port 2222" >> /etc/ssh/sshd_config.d/azure.conf \
&& echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config.d/azure.conf \
&& echo 'root:Docker!' | chpasswd
COPY docker-uceap-entrypoint /usr/local/bin/docker-uceap-entrypoint
ENTRYPOINT ["docker-uceap-entrypoint"]

ARG MYSQL_HOST
ARG MYSQL_TCP_PORT
ARG MYSQL_USER
Expand Down
6 changes: 6 additions & 0 deletions docker-uceap-entrypoint
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
set -e

service ssh start

exec apache2-foreground
Loading