Page MenuHomeDevCentral

Configure Docker Hub triggers for Docker Hub
ClosedPublic

Authored by dereckson on Mar 31 2023, 23:04.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 15, 05:45
Unknown Object (File)
Thu, Nov 14, 04:49
Unknown Object (File)
Wed, Nov 13, 10:35
Unknown Object (File)
Wed, Nov 13, 09:45
Unknown Object (File)
Wed, Nov 13, 03:58
Unknown Object (File)
Wed, Nov 13, 03:33
Unknown Object (File)
Tue, Nov 12, 09:58
Unknown Object (File)
Sun, Nov 10, 06:04
Subscribers
None

Details

Summary

This is the new Docker Hub needed configuration to trigger builds,
still to be supported by keruald/dockerhub and the Notifications Center.

Ref T1814

Test Plan

Trigger a build when a commit is pushed to rNOTIF

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
config-notifications-docker
Build Status
Buildable 4667
Build 4944: arc lint + arc unit

Event Timeline

dereckson created this revision.

Vault policy

Complector
$ sudo salt-call --local state.sls_id salt-node-docker-002 roles/vault/policies
local:
----------
          ID: salt-node-docker-002
    Function: vault.policy_present
      Result: True
     Comment: Policy was updated
     Started: 23:08:25.506425
    Duration: 99.149 ms
     Changes:
              ----------
              salt-node-docker-002:
                  ----------
                  change:
                      ---
                      +++
                      @@ -91,6 +91,14 @@
                           capabilities = [ "read" ]
                       }

                      +path "apps/notifications-center/dockerhub/notifications" {
                      +    capabilities = [ "read" ]
                      +}
                      +
                      +path "apps/notifications-center/dockerhub/authgrove" {
                      +    capabilities = [ "read" ]
                      +}
                      +
                       path "ops/data/secrets/nasqueron.pixelfed.app_key" {
                           capabilities = [ "read" ]
                       }

Summary for local
------------
Succeeded: 1 (changed=1)
Failed:    0
------------
Total states run:     1
Total run time:  99.149 ms

Should be apps/data/...

Simplify Vault path by bypassing this prefix thing

Vault part is OK by adding apps to vault_mount_paths.

Correctly no-op after manual edit to test vault.read_secret:

Complector
$ sudo salt-call --local state.sls_id salt-node-docker-002 roles/vault/policies test=True
local:
----------
          ID: salt-node-docker-002
    Function: vault.policy_present
      Result: True
     Comment: Policy exists, and has the correct content
     Started: 23:32:42.091749
    Duration: 53.693 ms
     Changes:

Summary for local
------------
Succeeded: 1
Failed:    0
------------
Total states run:     1
Total run time:  53.693 ms

chmod ; s/authgrove/auth-grove/

This revision is now accepted and ready to land.Mar 31 2023, 23:43