Merge pull request #57 from jkuznik/Task-47-Navigation-icons #13
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: Update docker image | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login Dockerhub | |
env: | |
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}} | |
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | |
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD | |
- name: Build the Docker image | |
run: | | |
docker build -t jkuznik/disaster-alert:${{ github.sha }} . | |
docker tag jkuznik/disaster-alert:${{ github.sha }} jkuznik/disaster-alert:latest | |
- name: Push to Dockerhub | |
run: | | |
docker push jkuznik/disaster-alert:${{ github.sha }} | |
docker push jkuznik/disaster-alert:latest |