for check github actions #8
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 terraform-utils' | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'onboarding' | |
# paths: | |
# - 'docker/terraform-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/terraform-utils/ | |
tags: maddevsio/terraform-utils:latest |