Skip to content

github actions for generating helm charts tester docker image #47

github actions for generating helm charts tester docker image

github actions for generating helm charts tester docker image #47

Workflow file for this run

name: Build Docker File (Dev)
on:
workflow_dispatch:
pull_request:
paths:
- .github/workflows/buildDockerfile.yml
branches:
- dev
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_BACKUP }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_BACKUP }}
ECR_REPO_NAME: 535893049302.dkr.ecr.eu-west-1.amazonaws.com/helm-charts-tester-builds
jobs:
build-docker-file:
name: Build Docker file
runs-on: ubuntu-latest
# env:
# ResourceGroupLocation: northeurope
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: 535893049302.dkr.ecr.eu-west-1.amazonaws.com
username: ${{ env.AWS_ACCESS_KEY_ID }}
password: ${{ env.AWS_SECRET_ACCESS_KEY }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}:build"
push: true
tags: ${{ env.ECR_REPO_NAME }}:githubactions