Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
deploy-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
deploy-formula
Commits
96c43651
Commit
96c43651
authored
5 years ago
by
Dennis Ahrens
Browse files
Options
Downloads
Patches
Plain Diff
Provide salt spm deployments
parent
2dc9c5d0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
FORMULA
+3
-3
3 additions, 3 deletions
FORMULA
deploy/spm.sls
+16
-0
16 additions, 0 deletions
deploy/spm.sls
with
19 additions
and
3 deletions
FORMULA
+
3
−
3
View file @
96c43651
name: deploy
name: deploy
os: Debian, Ubuntu
os: Debian, Ubuntu
os_family: Debian
os_family: Debian
version:
201907
version:
0.2.0
release: 1
release: 1
summary: Formula that allows you clone code from git repositories
summary: Deploy code
description: It primarily ships a user with proper ssh config and a target directory plus ssh key.
description: Formula that allows you clone code from git repositories and additional tasks for their deployments
\ No newline at end of file
This diff is collapsed.
Click to expand it.
deploy/spm.sls
0 → 100644
+
16
−
0
View file @
96c43651
{% from "deploy/map.jinja" import deploy with context %}
{% for project_name, project_config in deploy.projects.iteritems() if project_config.get('spm', False) %}
{% set spm_config = project_config.spm %}
{% if spm_config %}
spm build {{ project_config.path }}:
cmd.run:
- require_in:
- cmd: spm create_repo /srv/spm_build
{% endif %}
{% endfor %}
spm create_repo /srv/spm_build:
cmd.run
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment