diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..f6c3d84 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,18 @@ +name: FAF UnitDB CI + +on: [ push, pull_request ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build and push Docker images + if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags') + uses: docker/build-push-action@v1.1.1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + repository: faforever/faf-unitdb + tag_with_ref: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100755 index e56ca8b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -dist: trusty - -services: - - docker - -script: - - docker build -t faf-unitdb . - -after_success: - - export REPO=faforever/faf-unitdb - - if [ -n "${TRAVIS_TAG}" ]; then - docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}"; - docker tag faf-unitdb ${REPO}:${TRAVIS_TAG}; - docker push ${REPO}; - fi - -after_failure: - - docker logs faf-unitdb \ No newline at end of file