-
-
Notifications
You must be signed in to change notification settings - Fork 15
30 lines (30 loc) · 728 Bytes
/
build.yml
File metadata and controls
30 lines (30 loc) · 728 Bytes
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
name: build
on:
push:
branches:
- master
paths:
- 'geoip2influx/**'
- 'tests/**'
- 'run.py'
- 'requirements.txt'
- 'Dockerfile'
- 'root/**'
jobs:
push_to_ghcr_io:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PAT }}
- name: build&push
run: |
docker build . --tag ghcr.io/gilbn/geoip2influx
docker push ghcr.io/gilbn/geoip2influx