Skip to content

Commit

Permalink
build & push to the public ECR
Browse files Browse the repository at this point in the history
  • Loading branch information
andrenarciso4 authored and wardviaene committed Jul 7, 2022
1 parent dc6b25d commit 8e5c19a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/public-ecr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# .github/workflows/public-ecr.yml
name: Build and Push OpenVPN
on:
push:

permissions:
id-token: write
contents: write # This is required for actions/checkout@v1
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v1
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@master
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNTID }}:role/github-openvpn
role-session-name: samplerolesession
aws-region: eu-west-1
- name: Docker Login
run: aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/y9x3p3i6
- name: Docker Build
run: docker build -t roxprox-ratelimit .
- name: Docker Tag
run: docker tag roxprox-ratelimit public.ecr.aws/y9x3p3i6/roxprox-ratelimit:latest
- name: Docker Push
run: docker push public.ecr.aws/y9x3p3i6/roxprox-ratelimit

0 comments on commit 8e5c19a

Please sign in to comment.