Merge pull request #233 from iamasink/main #68
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: [main] | |
paths-ignore: | |
- "README.md" | |
- "LICENSE" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: docker login | |
env: | |
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}} | |
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | |
run: | | |
echo "$DOCKER_PASSWORD" | docker login -u $DOCKER_USERNAME --password-stdin | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag phineas/lanyard:latest | |
- name: Docker Push | |
run: docker push phineas/lanyard |