-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/github_actions/hashicorp/setup-te…
…rraform-3.1.1
- Loading branch information
Showing
30 changed files
with
896 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
dependacheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected].1 | ||
- uses: actions/[email protected].7 | ||
- name: Check that images are checked by dependabot | ||
run: | | ||
./tools/dependacheck/dependacheck.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
name: Render Drawio diagrams | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected].1 | ||
- uses: actions/[email protected].7 | ||
- name: Install Task | ||
uses: Arduino/actions/setup-taskfile@master | ||
- name: Clean render | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ jobs: | |
image-url: ghcr.io/danskernesdigitalebibliotek/dpl-platform/dplsh | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].7 | ||
- name: Install Task | ||
uses: arduino/setup-task@v2 | ||
- name: Log in to the Container registry | ||
|
@@ -66,7 +66,7 @@ jobs: | |
# run som tests on the image, while still avoiding to have to rebuild the | ||
# image when we do the final build. | ||
- name: Build and export to Docker | ||
uses: docker/build-push-action@v5 | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: tools/dplsh | ||
load: true | ||
|
@@ -80,7 +80,7 @@ jobs: | |
working-directory: tools/dplsh | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: tools/dplsh | ||
platforms: linux/amd64,linux/arm64 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
name: Lint Markdown | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected].1 | ||
- uses: actions/[email protected].7 | ||
# git with HTTP authentication provides an easy way for us to install | ||
# unreleased commits of NPM projects. | ||
- name: Reconfigure git to use HTTP authentication | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
name: Shellcheck | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected].1 | ||
- uses: actions/[email protected].7 | ||
- name: shellcheck | ||
uses: reviewdog/action-shellcheck@v1 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
terraform_format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected].1 | ||
- uses: actions/[email protected].7 | ||
- uses: hashicorp/[email protected] | ||
- name: Terraform fmt | ||
id: fmt | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Make changes to DPLSH | ||
|
||
## When to use | ||
|
||
When for example the `kubectl` or other dependencies needs updating | ||
|
||
## Make the change | ||
|
||
1. Go to the DPLSH directory and make the necessary changes on a new branch | ||
2. Build DPLSH locally by running `IMAGE_URL=dplsh IMAGE_TAG=someTagName | ||
task build` | ||
3. Test that it works by running `DPLSH_IMAGE=dplsh:local ./dplsh` and running | ||
what ever commands need to be run to test that the change has the desired effect | ||
4. Check what version DPLSH is at here: | ||
<https://github.com/danskernesdigitalebibliotek/dpl-platform/releases> | ||
5. Push the branch, have it review and merge it into `main` | ||
6. Push a new tag to `main`. The tag should look like this: `dplsh-x.x.x`. | ||
(If in doubt about what version to bump to; read this: <https://semver.org/>) | ||
7. Wait for main to automically build and release the new version | ||
8. Go to your main branch, enter the `/infrastructure` directory and | ||
run `../tools/dplsh/dplsh.sh --update`. | ||
|
||
You are done and have the newest version of DPLSH on your machine. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# UI: Synchronize site state | ||
|
||
## When to use | ||
|
||
If you want to synchronize state from one environment into another environment. | ||
|
||
For example, you may want to synchronize state to a PR environment to run your | ||
code in a more realistic setup. | ||
|
||
Or you may want to synchronize a main (production) environment state to a | ||
moduletest environment, if requested by the customer. | ||
|
||
## Prerequisites | ||
|
||
- A user with access to the relevant project through the | ||
[Lagoon UI](https://ui.lagoon.dplplat01.dpl.reload.dk/) | ||
|
||
If you have access to the dpl-platform setup and can run task in the taskfile | ||
(for platform engineers, not developers of the CMS) you may want to synchronize | ||
site state using the related task (runbook WIP). | ||
|
||
## Procedure | ||
|
||
1. Go to the [Lagoon UI] website and log in | ||
2. Navigate to the relevant project by selecting in the list | ||
3. Pick the *target* environment in the list of environments. E.g. if you are | ||
synchronizing state from `main` to `pr-775` you should select `pr-775`. | ||
4. In the left-hand side pick the "Tasks" menu point | ||
|
||
Now you are at the tasks UI and can execute tasks for this environment. It | ||
should look something like this: | ||
|
||
![Tasks page in the Lagoon UI](../images/lagoon-ui-tasks-page.png) | ||
|
||
Now we need to execute 3 tasks to synchronize the whole state and make it | ||
available on visits to the target site: | ||
|
||
<!-- markdownlint-disable-next-line MD029 --> | ||
5. Run task "Copy database between environments \[drush sql-sync\]": | ||
|
||
- Select the task in the "Select a task..." dropdown. | ||
- Select the source environment. E.g. if you are synchronizing from `main` to | ||
`pr-775` select `main` in the dropdown. | ||
- Click "Run task" to start the task. | ||
The task appears in the top of the list of tasks. You can click it to see | ||
log output. Once the task completes verify that the log output states that | ||
the synchronization worked. | ||
|
||
<!-- markdownlint-disable-next-line MD029 --> | ||
6. Run task "Copy files between environments \[drush rsync\]": | ||
|
||
- Select the task in the "Select a task..." dropdown. | ||
- Select the source environment as above. | ||
- Click "Run task" to start the task. | ||
The task output can be viewed as described in point 5. | ||
The task will fail. Verify that the error is a list of statements saying | ||
`> rsync: [receiver] failed to set times on ...`. As long as these are the | ||
only errors in the output, the synchronization succeeded. | ||
|
||
<!-- markdownlint-disable-next-line MD029 --> | ||
7. Run task "Clear Drupal caches \[drupal cache-clear\]" to clear the caches: | ||
|
||
- Select the task in the "Select a task..." dropdown. | ||
- Select the source environment as above. | ||
- Click "Run task" to start the task. | ||
Once the task completes the environment has been fully synced and caches | ||
are cleared so the state will be reflected when you visit the site. | ||
E.g. if you were synchronizing state from `main` to `pr-775`, the `pr-775` | ||
environment will now have the same state as `main`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.