Well there's no builtin way of doing.
The problem is:
We need a way of skipping steps, or conditional pipelines that are triggered when
some dir/*
files.*
were changed since last commit.
Useful if you maintain a:
- Monorepo
/* https://getbootstrap.com/docs/5.0/components/toasts/ */ | |
.toast-container { | |
position: fixed; | |
right: 20px; | |
top: 20px; | |
} | |
.toast:not(.showing):not(.show) { | |
display: none !important; |
Well there's no builtin way of doing.
The problem is:
We need a way of skipping steps, or conditional pipelines that are triggered when
some dir/*
files.*
were changed since last commit.
Useful if you maintain a:
# https://groups.google.com/forum/?fromgroups#!topic/django-brasil/d6gV1V9qrgU | |
from django.forms import ModelForm | |
from minha_app.models import MeuModel | |
class MeuForm(ModelForm): | |
class Meta: | |
model = MeuModel |
Deploy a server to packet.net
Type 2A - Ubuntu 17.04
ssh into it.
Install Docker. (Yes we use Docker to build Docker)
This is a old docker, but It's good for us. apt install docker.io
{{ variable|stringformat:"02d" }} |
<?php | |
/** | |
* How to get substring UTF-8 characters | |
*/ | |
// If you try something like this | |
$utf_8_characters = 'Sábado'; | |
echo substr($utf_8_characters, 0, 3); | |
// you get something like "Sá", but not "Sáb" |
_build: | |
# ... | |
export IMAGE | |
build: ## build images / see `make available_images` for a list of images | |
@read -p "Enter image name: " IMAGE; $(MAKE) _build |
In fact it could be a number of other issues, that are covered in google results for this problem.
But one of them could be just the redirect
config.
More: https://github.com/docker/distribution/blob/master/docs/configuration.md#redirect
in /etc/docker/registry/config.yml
storage:
I'm using Ansible only for Configuration Management, the server is up and I want to configure users, install packages and configure them.
For infrastructure provisioning terraform.io is nice!
Currently, my deployment flow includes Drone.io/GitlabCI for CI/CD and Docker Swarm for orchestrating containers.
# Let's say you want to access the Collection instance for a Image in a Django Admin Inline | |
from django.contrib import admin | |
from app.models import Image, Collection | |
class ImageInline(admin.StackedInline): | |
model = models.Image | |
extra = 1 |