forked from aws/amazon-eks-pod-identity-webhook
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from joelddiaz/rebase-master
Rebase master
- Loading branch information
Showing
1,212 changed files
with
233,110 additions
and
92,574 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,41 @@ | ||
name: build | ||
|
||
on: push | ||
jobs: | ||
build: | ||
# this is to prevent the job to run at forked projects | ||
if: github.repository == 'aws/amazon-eks-pod-identity-webhook' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: crazy-max/ghaction-docker-buildx@v3 | ||
with: | ||
buildx-version: latest | ||
qemu-version: latest | ||
- name: Build container and push to Dockerhub registry | ||
run: | | ||
BRANCH=$(echo $GITHUB_REF | cut -d'/' -f3) | ||
SHORT_SHA=$(echo $GITHUB_SHA | cut -c -7) | ||
REPO=amazon/amazon-eks-pod-identity-webhook | ||
if [ "$BRANCH" = "master" ]; then | ||
TAG=$SHORT_SHA | ||
else | ||
TAG=$BRANCH | ||
fi | ||
docker login -u ${{ secrets.DOCKERHUB_USER }} -p ${{ secrets.DOCKERHUB_TOKEN }} | ||
docker buildx build \ | ||
-t $REPO:$TAG \ | ||
--platform=linux/amd64,linux/arm64 \ | ||
--progress plain \ | ||
--push . | ||
if [ "$BRANCH" = "master" ]; then | ||
docker buildx build \ | ||
-t $REPO:latest \ | ||
--platform=linux/amd64,linux/arm64 \ | ||
--progress plain \ | ||
--push . | ||
fi | ||
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 |
---|---|---|
|
@@ -6,3 +6,4 @@ deploy/deployment.yaml | |
build | ||
/certs/ | ||
SAMToolkit.* | ||
coverage.out |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM registry.svc.ci.openshift.org/ocp/builder:rhel-8-golang-1.15-openshift-4.7 AS builder | ||
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.13 AS builder | ||
WORKDIR /go/src/github.com/aws/amazon-eks-pod-identity-webhook | ||
COPY . . | ||
ENV GO_PACKAGE github.com/aws/amazon-eks-pod-identity-webhook | ||
RUN make amazon-eks-pod-identity-webhook | ||
|
||
FROM registry.svc.ci.openshift.org/ocp/4.7:base | ||
FROM registry.svc.ci.openshift.org/ocp/4.5:base | ||
COPY --from=builder /go/src/github.com/aws/amazon-eks-pod-identity-webhook/amazon-eks-pod-identity-webhook /usr/bin/aws-pod-identity-webhook |
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
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
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
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.