Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
aurweb
Commits
42af2a1a
Commit
42af2a1a
authored
Jul 25, 2020
by
Sven-Hendrik Haase
Browse files
Add automatic deployment for dev and production environments
parent
485b9513
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
42af2a1a
image
:
archlinux
stages
:
-
test
-
deploy
cache
:
key
:
system-v1
paths
:
...
...
@@ -15,5 +19,31 @@ before_script:
python-itsdangerous python-httpx
test
:
stage
:
test
script
:
-
make -C test
deploy_dev
:
stage
:
deploy
environment
:
name
:
dev
url
:
https://aur-dev.archlinux.org
script
:
"
ssh
deployme@aur-dev.archlinux.org"
only
:
-
develop
resource_group
:
dev
# Ensure only a single deployment can run per time
tags
:
-
secure-general
deploy_production
:
stage
:
deploy
environment
:
name
:
production
url
:
https://aur.archlinux.org
script
:
"
ssh
deployme@aur.archlinux.org"
when
:
manual
only
:
-
master
resource_group
:
production
# Ensure only a single deployment can run per time
tags
:
-
secure-general
deploy/deployme.sh
0 → 100755
View file @
42af2a1a
#!/usr/bin/env bash
set
-eux
BASEDIR
=
$(
dirname
$(
readlink
-f
"
$0
"
))
cd
"
$BASEDIR
/.."
echo
"=> Deploying in
$(
pwd
)
"
git fetch origin
&&
git reset
--hard
origin/master
(
cd
doc/
&&
make
)
(
cd
po/
&&
make
&&
make
install
)
alembic upgrade
head
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment