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)
Tue, Nov 19, 12:56
Unknown Object (File)
Tue, Nov 19, 04:59
Unknown Object (File)
Mon, Nov 18, 18:06
Unknown Object (File)
Mon, Nov 18, 03:29
Unknown Object (File)
Mon, Nov 18, 03:26
Unknown Object (File)
Mon, Nov 18, 01:42
Unknown Object (File)
Fri, Nov 15, 05:45
Unknown Object (File)
Thu, Nov 14, 04:49
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 Not Applicable
Unit
Tests Not Applicable

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