-
-
Notifications
You must be signed in to change notification settings - Fork 14
35 lines (28 loc) · 853 Bytes
/
cd.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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@v4
- uses: extractions/setup-just@v1
- name: Login to Docker Hub
run: |
docker login \
-u ${{ secrets.DOCKER_USERNAME }} \
-p ${{ secrets.DOCKER_PASSWORD }}
- name: Download CSVs
run: just download
- name: Build Docker image
run: docker build -t extrawurst/ip2country:latest -f Dockerfile .
- name: Publish Docker image
run: docker push extrawurst/ip2country
- name: Build Docker image (grpc)
run: docker build -t extrawurst/ip2country-grpc:latest -f Dockerfile.grpc .
- name: Publish Docker image
run: docker push extrawurst/ip2country-grpc