Skip to content

github actions for generating helm charts tester docker image #60

github actions for generating helm charts tester docker image

github actions for generating helm charts tester docker image #60

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 }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# 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: europe-west2-docker.pkg.dev
username: _json_key
password: ${{ secrets.GCLOUD_SERVICE_KEY }}
# 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
tags: "europe-west2-docker.pkg.dev/neo4j-helm/helm-charts-tester-builds/githubactions:latest"
provenance: false