for check github actions #6
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
name: 'Build docker image aws-eks-utils' | |
on: | |
push: | |
branches: | |
- main | |
- onboarding | |
# paths: | |
# - 'docker/aws-eks-utils/Dockerfile' | |
jobs: | |
push_to_registries: | |
name: Build and Push Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and Push | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
context: docker/aws-eks-utils/ | |
tags: maddevsio/aws-eks-utils:latest |