CD #1442
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: CD | |
on: | |
schedule: | |
- cron: '0 1 * * *' # run at 2 AM UTC | |
push: | |
branches: [ 'master' ] | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Login to Docker Hub | |
run: | | |
docker login \ | |
-u ${{ secrets.DOCKER_USERNAME }} \ | |
-p ${{ secrets.DOCKER_PASSWORD }} | |
- name: Download CSVs | |
run: make download | |
- name: Build Docker image | |
run: docker build -t extrawurst/ip2country:latest -f Dockerfile . | |
- name: Publish Docker image | |
run: docker push extrawurst/ip2country |