Skip to content

Commit

Permalink
move to github action and get rid of travisci (#78)
Browse files Browse the repository at this point in the history
* move to github action and get rid of travisci

* newest geoip db
  • Loading branch information
vasyahuyasa authored Dec 21, 2021
1 parent a88fe1f commit 3e60fcf
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 30 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build and publish

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: prepare build environment
run: |
sudo apt-get update
sudo apt-get install -y \
gcc \
g++ \
make \
libsqlite3-dev \
libmariadb-dev-compat \
autoconf \
libtool \
golang \
ca-certificates
shell: bash
- name: build
run: make -C src USE_EXPEREMENTAL_DISCORD=true
shell: bash

docker_image_publish:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}}
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
vasyahuyasa/remod
ghcr.io/vasyahuyasa/remod
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

Binary file modified GeoLite2-Country.mmdb
Binary file not shown.

0 comments on commit 3e60fcf

Please sign in to comment.