change git domain
This commit is contained in:
parent
d11dcef74d
commit
9aa60eb614
7 changed files with 15 additions and 15 deletions
|
@ -7,7 +7,7 @@ categories: concourse apprise
|
|||
|
||||
Recently, I deployed [Concourse CI](https://concourse-ci.org/) because I wanted to get my feet wet with a CI/CD pipeline.
|
||||
However, I had a practical use case lying around for a long time: automatically compiling my static website and deploying it to my docker Swarm.
|
||||
This took some time getting right, but the result works like a charm ([source code](https://git.pim.kunis.nl/pim/static)).
|
||||
This took some time getting right, but the result works like a charm ([source code](https://git.kun.is/pim/static)).
|
||||
|
||||
It's comforting to know I don't have move a finger and my website is automatically deployed.
|
||||
However, I would still like to receive some indication of what's happening.
|
||||
|
@ -44,7 +44,7 @@ As Apprise notifications are basically fire-and-forget, we will only implement t
|
|||
|
||||
# Writing the `out` script
|
||||
|
||||
The whole script can be found [here](https://git.pim.kunis.nl/pim/concourse-apprise-notifier/src/branch/master/out), but I will explain the most important bits of it.
|
||||
The whole script can be found [here](https://git.kun.is/pim/concourse-apprise-notifier/src/branch/master/out), but I will explain the most important bits of it.
|
||||
Note that I only use Apprise's persistent storage solution, and not its stateless solution.
|
||||
|
||||
Concourse provides us with the working directory, which we `cd` to:
|
||||
|
@ -125,7 +125,7 @@ echo "${timestamp}" >&3
|
|||
# Building the Container
|
||||
|
||||
As said earlier, to actually use this script, we need to add it to a image.
|
||||
I won't be explaining this whole process, but the source can be found [here](https://git.pim.kunis.nl/pim/concourse-apprise-notifier/src/branch/master/pipeline.yml).
|
||||
I won't be explaining this whole process, but the source can be found [here](https://git.kun.is/pim/concourse-apprise-notifier/src/branch/master/pipeline.yml).
|
||||
The most important take-aways are these:
|
||||
- Use `concourse/oci-build-task` to build a image from a Dockerfile.
|
||||
- Use `registry-image` to push the image to an image registry.
|
||||
|
@ -133,14 +133,14 @@ The most important take-aways are these:
|
|||
# Using the Resource Type
|
||||
|
||||
Using our newly created resource type is surprisingly simple.
|
||||
I use it for the blog you are reading right now and the pipeline definition can be found [here](https://git.pim.kunis.nl/pim/static/src/branch/main/pipeline.yml).
|
||||
I use it for the blog you are reading right now and the pipeline definition can be found [here](https://git.kun.is/pim/static/src/branch/main/pipeline.yml).
|
||||
Here we specify the resource type in a Concourse pipeline:
|
||||
```yaml
|
||||
resource_types:
|
||||
- name: apprise
|
||||
type: registry-image
|
||||
source:
|
||||
repository: git.pim.kunis.nl/pim/concourse-apprise-notifier
|
||||
repository: git.kun.is/pim/concourse-apprise-notifier
|
||||
tag: "1.1.1"
|
||||
```
|
||||
|
||||
|
|
|
@ -181,4 +181,4 @@ There are ways to implement these, but for my home lab I did not deem this neces
|
|||
In a more professional environment, I would suggest using [Hashicorp's Vault](https://www.vaultproject.io/).
|
||||
|
||||
This project did teach me about the limits and flexibility of Terraform, so all in all a success!
|
||||
All code can be found on the git repository [here](https://git.pim.kunis.nl/home/tf-modules/src/branch/master/debian).
|
||||
All code can be found on the git repository [here](https://git.kun.is/home/tf-modules/src/branch/master/debian).
|
||||
|
|
Reference in a new issue