Merge pull request #97 from naturalstrings/nanAug30v2 #21
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
# Plan for Github workflow anmes Docker Image CI | |
name: Docker Image CI | |
# Upon git push to the main branch, this plan will be executed. | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build_push_docker: | |
runs-on: ubuntu-latest | |
# Using template code from actions marketplace for checkout. | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
#Using template for build and push. | |
- name: Build & push Docker image | |
uses: mr-smithers-excellent/docker-build-push@v3 | |
with: | |
# Private repo image name | |
image: ${{ secrets.DOCKER_USERNAME }}/palm-and-vine-docker-image | |
tag: latest | |
registry: docker.io | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} |