-
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.
- Loading branch information
Zachary Seguin
committed
May 19, 2021
0 parents
commit a96af84
Showing
22 changed files
with
1,649 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.vscode/ | ||
manifests/ | ||
Dockerfile | ||
.gitignore |
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,46 @@ | ||
name: build_and_push_main | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
# Any checks that run pre-build | ||
pre-build-checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Set environment variables | ||
shell: bash | ||
run: | | ||
echo "TAG=${GITHUB_SHA}" >> $GITHUB_ENV | ||
echo "GIT_SHA=${GITHUB_SHA}" >> $GITHUB_ENV | ||
- | ||
name: Docker meta | ||
id: meta | ||
uses: crazy-max/ghaction-docker-meta@v2 | ||
with: | ||
images: statcan/daaas-aaw-toleration-injector | ||
labels: | | ||
org.opencontainers.image.vendor=Statistics Canada | ||
org.opencontainers.image.licenses=https://github.com/StatCan/daaas-aaw-toleration-injector/blob/${{ env.GIT_SHA }}/LICENSE | ||
- | ||
name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
tags: statcan/daaas-aaw-toleration-injector:${{ env.TAG }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
- | ||
name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
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,46 @@ | ||
name: build_and_push_tag | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
# Any checks that run pre-build | ||
pre-build-checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Set environment variables | ||
shell: bash | ||
run: | | ||
echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV | ||
echo "GIT_SHA=${GITHUB_SHA}" >> $GITHUB_ENV | ||
- | ||
name: Docker meta | ||
id: meta | ||
uses: crazy-max/ghaction-docker-meta@v2 | ||
with: | ||
images: statcan/daaas-aaw-toleration-injector | ||
labels: | | ||
org.opencontainers.image.vendor=Statistics Canada | ||
org.opencontainers.image.licenses=https://github.com/StatCan/daaas-aaw-toleration-injector/blob/${{ env.GIT_SHA }}/LICENSE | ||
- | ||
name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
tags: statcan/daaas-aaw-toleration-injector:${{ env.TAG }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
- | ||
name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
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,4 @@ | ||
vendor | ||
daaas-aaw-toleration-injector | ||
.DS_Store | ||
.vscode/ |
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,29 @@ | ||
# Contributing | ||
|
||
([Français](#comment-contribuer)) | ||
|
||
## How to Contribute | ||
|
||
When contributing, post comments and discuss changes you wish to make via Issues. | ||
|
||
Feel free to propose changes by creating Pull Requests. If you don't have write access, editing a file will create a Fork of this project for you to save your proposed changes to. Submitting a change to a file will write it to a new Branch in your Fork, so you can send a Pull Request. | ||
|
||
If this is your first time contributing on GitHub, don't worry! Let us know if you have any questions. | ||
|
||
### Security | ||
|
||
**Do not post any security issues on the public repository!** See [SECURITY.md](SECURITY.md) | ||
|
||
______________________ | ||
|
||
## Comment contribuer | ||
|
||
Lorsque vous contribuez, veuillez également publier des commentaires et discuter des modifications que vous souhaitez apporter par l'entremise des enjeux (Issues). | ||
|
||
N'hésitez pas à proposer des modifications en créant des demandes de tirage (Pull Requests). Si vous n'avez pas accès au mode de rédaction, la modification d'un fichier créera une copie (Fork) de ce projet afin que vous puissiez enregistrer les modifications que vous proposez. Le fait de proposer une modification à un fichier l'écrira dans une nouvelle branche dans votre copie (Fork), de sorte que vous puissiez envoyer une demande de tirage (Pull Request). | ||
|
||
Si c'est la première fois que vous contribuez à GitHub, ne vous en faites pas! Faites-nous part de vos questions. | ||
|
||
### Sécurité | ||
|
||
**Ne publiez aucun problème de sécurité sur le dépôt publique!** Voir [SECURITY.md](SECURITY.md) |
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 @@ | ||
|
||
# Build with the golang image | ||
FROM golang:1.16-alpine AS build | ||
|
||
# Add git | ||
RUN apk add git | ||
|
||
# Set workdir | ||
WORKDIR /work | ||
|
||
# Add dependencies | ||
COPY go.mod . | ||
COPY go.sum . | ||
RUN go mod download | ||
|
||
# Build | ||
COPY . . | ||
RUN CGO_ENABLED=0 go build | ||
|
||
# Generate final image | ||
FROM scratch | ||
COPY --from=build /work/daaas-aaw-toleration-injector /daaas-aaw-toleration-injector | ||
ENTRYPOINT [ "/daaas-aaw-toleration-injector" ] |
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 @@ | ||
Copyright © 2021 Her Majesty the Queen in Right of Canada, as represented by the Minister of Statistics Canada | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
|
||
--- | ||
|
||
**NOTE: Some files in this repository use a different license** |
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,27 @@ | ||
[(Français)](#injecteur-de-toleration-pour-ads-eaa) | ||
|
||
## DAaaS AAW Toleration Injector | ||
|
||
### How to Contribute | ||
|
||
See [CONTRIBUTING.md](CONTRIBUTING.md) | ||
|
||
### License | ||
|
||
Unless otherwise noted, the source code of this project is covered under Crown Copyright, Government of Canada, and is distributed under the [MIT License](LICENSE). | ||
|
||
The Canada wordmark and related graphics associated with this distribution are protected under trademark law and copyright law. No permission is granted to use them outside the parameters of the Government of Canada's corporate identity program. For more information, see [Federal identity requirements](https://www.canada.ca/en/treasury-board-secretariat/topics/government-communications/federal-identity-requirements.html). | ||
|
||
______________________ | ||
|
||
## Injecteur de Toleration pour ADS EAA | ||
|
||
### Comment contribuer | ||
|
||
Voir [CONTRIBUTING.md](CONTRIBUTING.md) | ||
|
||
### Licence | ||
|
||
Sauf indication contraire, le code source de ce projet est protégé par le droit d'auteur de la Couronne du gouvernement du Canada et distribué sous la [licence MIT](LICENSE). | ||
|
||
Le mot-symbole « Canada » et les éléments graphiques connexes liés à cette distribution sont protégés en vertu des lois portant sur les marques de commerce et le droit d'auteur. Aucune autorisation n'est accordée pour leur utilisation à l'extérieur des paramètres du programme de coordination de l'image de marque du gouvernement du Canada. Pour obtenir davantage de renseignements à ce sujet, veuillez consulter les [Exigences pour l'image de marque](https://www.canada.ca/fr/secretariat-conseil-tresor/sujets/communications-gouvernementales/exigences-image-marque.html). |
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,11 @@ | ||
([Français](#sécurité)) | ||
|
||
# Security | ||
|
||
**Do not post any security issues on the public repository!** Security vulnerabilities must be reported by email to `statcan.opensource-logiciellibre.statcan@canada.ca` | ||
|
||
______________________ | ||
|
||
## Sécurité | ||
|
||
**Ne publiez aucun problème de sécurité sur le dépôt publique!** Les vulnérabilités de sécurité doivent être signalées par courriel à `statcan.opensource-logiciellibre.statcan@canada.ca` |
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,24 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIID9TCCAt2gAwIBAgIUeWjzwM1k/GiQWj0sMVBa9swhjI0wDQYJKoZIhvcNAQEL | ||
BQAwgYkxCzAJBgNVBAYTAkNBMRAwDgYDVQQIDAdPbnRhcmlvMQ8wDQYDVQQHDAZP | ||
dHRhd2ExLzAtBgNVBAoMJlN0YXRpc3RpY3MgQ2FuYWRhIC0gU3RhdGlzdGlxdWUg | ||
Q2FuYWRhMSYwJAYDVQQDDB1ub3RlYm9vay1hZG1pc3Npb24tY29udHJvbGxlcjAe | ||
Fw0yMDA0MDcxOTEwMTZaFw0zMDA0MDUxOTEwMTZaMIGJMQswCQYDVQQGEwJDQTEQ | ||
MA4GA1UECAwHT250YXJpbzEPMA0GA1UEBwwGT3R0YXdhMS8wLQYDVQQKDCZTdGF0 | ||
aXN0aWNzIENhbmFkYSAtIFN0YXRpc3RpcXVlIENhbmFkYTEmMCQGA1UEAwwdbm90 | ||
ZWJvb2stYWRtaXNzaW9uLWNvbnRyb2xsZXIwggEiMA0GCSqGSIb3DQEBAQUAA4IB | ||
DwAwggEKAoIBAQCg43B830pVM5VY6eXr9nZfvLWOD0oD53DPhpnAqR52m5/XvJbl | ||
6g4Ifm/7E1Omx6T5+VNhuyNraBBzgnhljI5aOJOqQi/W/6oo94u3gsy21JVcxORi | ||
dSH1z6F9YV36RC1olvgRSau9Dvbv0hxOtn+d2DtH2eI7PYmHVGLn24AXel1gB68G | ||
4cBo6zj0dkFR99LLxEwd8rN46IsG7xMS7aXM/CfJKniJPZk4QTib3/8o5HvuRztg | ||
pMkcku9SRzFQttCfgCIFcq3fYveBNGu/dJox6hcTF9858XctTZNGzK2nm8Rcl0nR | ||
TTdYc3AL47K2JkBv7V6y6+Y5+egFtWYhUdzXAgMBAAGjUzBRMB0GA1UdDgQWBBQB | ||
ZFJsurO/fu9rQTd/OM1/FxIKETAfBgNVHSMEGDAWgBQBZFJsurO/fu9rQTd/OM1/ | ||
FxIKETAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQAuprTIe2dN | ||
JYYcA5RlU3xT7HfmDqOOHC0rWEt8WIYQDo71So5TL5Z9lrH3Q1IdmoGk+9Rffufu | ||
ssWbEzqDPJUzA1Rh8+lXOeNP+RJ22OLqYPoKeeyeS4Zog/KCbfWh2JD0I9+b/WHX | ||
gJ8d6sVPEF8I53ig6X0f7QC+43ss8gQUjQxWx3gkmkrLwWTwFwoWGPFxd2uzqjLX | ||
kO9sqi8YLc/FUEKvv5pOPbSvcmWWWyGosPCGdOhiHwFdo8hoxKQwBAgyfDuEly7c | ||
hMSjs7PZFwxhcErdWnSPX90c6QSTYG4sl6IjR1no9mYeBL80EQ7E8cuRT9HzOiZa | ||
4N1mIuOImZXS | ||
-----END CERTIFICATE----- |
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,28 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCg43B830pVM5VY | ||
6eXr9nZfvLWOD0oD53DPhpnAqR52m5/XvJbl6g4Ifm/7E1Omx6T5+VNhuyNraBBz | ||
gnhljI5aOJOqQi/W/6oo94u3gsy21JVcxORidSH1z6F9YV36RC1olvgRSau9Dvbv | ||
0hxOtn+d2DtH2eI7PYmHVGLn24AXel1gB68G4cBo6zj0dkFR99LLxEwd8rN46IsG | ||
7xMS7aXM/CfJKniJPZk4QTib3/8o5HvuRztgpMkcku9SRzFQttCfgCIFcq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