Docker Image CI #25
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: Docker Image CI | |
on: | |
push: | |
branches: ["master"] | |
paths: "Dockerfile|docker-entrypoint.sh|.dockerignore" | |
workflow_dispatch: | |
jobs: | |
build_and_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to Docker | |
run: docker login -u domx4q -p dckr_pat_XRoQfUTJZlptcmQ3hEOzTBp59Sg | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag domx4q/astro:autoGit | |
- name: Push the image | |
run: docker push domx4q/astro:autoGit |