-
Notifications
You must be signed in to change notification settings - Fork 2
164 lines (137 loc) · 6.02 KB
/
registries.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
name: Registries Tests
on:
push:
branches:
- 'main'
jobs:
dockerhub:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup
uses: ./.github/actions/setup_shellspec # use local action
- name: Login to registry via Docker
uses: docker/login-action@v1
if: ${{ matrix.os != 'macos' }}
with:
username: ${{ secrets.OCI_DOCKERHUB_REGISTRY_USERNAME }}
password: ${{ secrets.OCI_DOCKERHUB_REGISTRY_PASSWORD }}
- name: Run shellspec tests
working-directory: ./
shell: bash -l {0} # run bash with --login flag to load .bash_profile that's used by yarn install method
run: |
export PATH="/usr/local/bin/vulnmap-mac/docker:$PATH"
shellspec "spec/registries"
env:
VULNMAP_TOKEN: ${{ secrets.VULNMAP_TOKEN }}
OCI_DOCKERHUB_REGISTRY_NAME: ${{ secrets.OCI_DOCKERHUB_REGISTRY_NAME }}
OCI_DOCKERHUB_REGISTRY_URL: ${{ secrets.OCI_DOCKERHUB_REGISTRY_URL }}
OCI_DOCKERHUB_REGISTRY_USERNAME: ${{ secrets.OCI_DOCKERHUB_REGISTRY_USERNAME }}
OCI_DOCKERHUB_REGISTRY_PASSWORD: ${{ secrets.OCI_DOCKERHUB_REGISTRY_PASSWORD }}
azure:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup
uses: ./.github/actions/setup_shellspec # use local action
- name: Login to registry via Docker
uses: docker/login-action@v1
with:
registry: ${{ secrets.OCI_AZURE_REGISTRY }}
username: ${{ secrets.OCI_AZURE_REGISTRY_USERNAME }}
password: ${{ secrets.OCI_AZURE_REGISTRY_PASSWORD }}
- name: Run shellspec tests
working-directory: ./
shell: bash -l {0} # run bash with --login flag to load .bash_profile that's used by yarn install method
run: |
export PATH="/usr/local/bin/vulnmap-mac/docker:$PATH"
shellspec "spec/registries"
env:
VULNMAP_TOKEN: ${{ secrets.VULNMAP_TOKEN }}
OCI_AZURE_REGISTRY_NAME: ${{ secrets.OCI_AZURE_REGISTRY_NAME }}
OCI_AZURE_REGISTRY_URL: ${{ secrets.OCI_AZURE_REGISTRY_URL }}
OCI_AZURE_REGISTRY_USERNAME: ${{ secrets.OCI_AZURE_REGISTRY_USERNAME }}
OCI_AZURE_REGISTRY_PASSWORD: ${{ secrets.OCI_AZURE_REGISTRY_PASSWORD }}
harbor:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup
uses: ./.github/actions/setup_shellspec # use local action
- name: Login to registry via Docker
uses: docker/login-action@v1
with:
registry: ${{ secrets.OCI_HARBOR_REGISTRY }}
username: ${{ secrets.OCI_HARBOR_REGISTRY_USERNAME }}
password: ${{ secrets.OCI_HARBOR_REGISTRY_PASSWORD }}
- name: Run shellspec tests
working-directory: ./
shell: bash -l {0} # run bash with --login flag to load .bash_profile that's used by yarn install method
run: |
export PATH="/usr/local/bin/vulnmap-mac/docker:$PATH"
shellspec "spec/registries"
env:
VULNMAP_TOKEN: ${{ secrets.VULNMAP_TOKEN }}
OCI_HARBOR_REGISTRY_NAME: ${{ secrets.OCI_HARBOR_REGISTRY_NAME }}
OCI_HARBOR_REGISTRY_URL: ${{ secrets.OCI_HARBOR_REGISTRY_URL }}
OCI_HARBOR_REGISTRY_USERNAME: ${{ secrets.OCI_HARBOR_REGISTRY_USERNAME }}
OCI_HARBOR_REGISTRY_PASSWORD: ${{ secrets.OCI_HARBOR_REGISTRY_PASSWORD }}
github:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup
uses: ./.github/actions/setup_shellspec # use local action
- name: Login to registry via Docker
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.OCI_GITHUB_REGISTRY_USERNAME }}
password: ${{ secrets.OCI_GITHUB_REGISTRY_PASSWORD }}
- name: Run shellspec tests
working-directory: ./
shell: bash -l {0} # run bash with --login flag to load .bash_profile that's used by yarn install method
run: |
export PATH="/usr/local/bin/vulnmap-mac/docker:$PATH"
shellspec "spec/registries"
env:
VULNMAP_TOKEN: ${{ secrets.VULNMAP_TOKEN }}
OCI_GITHUB_REGISTRY_NAME: ${{ secrets.OCI_GITHUB_REGISTRY_NAME }}
OCI_GITHUB_REGISTRY_URL: ${{ secrets.OCI_GITHUB_REGISTRY_URL }}
OCI_GITHUB_REGISTRY_USERNAME: ${{ secrets.OCI_GITHUB_REGISTRY_USERNAME }}
OCI_GITHUB_REGISTRY_PASSWORD: ${{ secrets.OCI_GITHUB_REGISTRY_PASSWORD }}
elastic:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup
uses: ./.github/actions/setup_shellspec # use local action
-
name: Login to registry via Docker
uses: docker/login-action@v1
with:
registry: ${{ secrets.OCI_ELASTIC_REGISTRY }}
username: ${{ secrets.OCI_ELASTIC_REGISTRY_ACCESS_KEY }}
password: ${{ secrets.OCI_ELASTIC_REGISTRY_SECRET_KEY }}
- name: Login with AWS
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.OCI_ELASTIC_REGISTRY_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.OCI_ELASTIC_REGISTRY_SECRET_KEY }}
aws-region: eu-west-1
- name: Run shellspec tests
working-directory: ./
shell: bash -l {0} # run bash with --login flag to load .bash_profile that's used by yarn install method
run: |
export PATH="/usr/local/bin/vulnmap-mac/docker:$PATH"
shellspec "spec/registries"
env:
VULNMAP_TOKEN: ${{ secrets.VULNMAP_TOKEN }}
OCI_ELASTIC_REGISTRY_NAME: ${{ secrets.OCI_ELASTIC_REGISTRY_NAME }}
OCI_ELASTIC_REGISTRY_URL: ${{ secrets.OCI_ELASTIC_REGISTRY_URL }}
OCI_ELASTIC_REGISTRY_USERNAME: AWS