Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Fix(build): Fixes broken build and also use GitHub Actions in place o…
Browse files Browse the repository at this point in the history
…f travis (#453)

* Fix(build):  Fixes broken build and also use GitHub Actions in place of travis

Signed-off-by: udit <[email protected]>
  • Loading branch information
uditgaurav authored Mar 17, 2021
1 parent 8979850 commit e0893dc
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [ opened, synchronize, reopened ]

jobs:
embedmd:
embedmdCheck_and_linksVerification:
runs-on: ubuntu-latest
steps:

Expand All @@ -17,6 +17,11 @@ jobs:
stable: 'false'
go-version: '1.14.0'

- name: Links Verification
run: |
go get -u -v github.com/bmuschko/link-verifier
link-verifier --dirs website,README.md,docs --fail=false
- name: Installing and Running embedmed
run: |
sudo apt install boxes
Expand Down Expand Up @@ -44,3 +49,11 @@ jobs:
tput setaf 2; echo "Nothing to embed"
fi
shell: sh

ci:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2

- name: Build
run: docker build -t $GITHUB_REPOSITORY .
24 changes: 24 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CD-Build

on:
push:
branches:
- master

jobs:
cd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Declare some variables
id: vars
shell: bash
run: |
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Docker login
run: echo ${{ secrets.DPASS }} | docker login -u ${{ secrets.DNAME }} --password-stdin
- name: Build and Push the Docker Image
run: |
docker build -t ${GITHUB_REPOSITORY}:${{ steps.vars.outputs.branch }}-${{ steps.vars.outputs.sha_short }} .
docker push ${GITHUB_REPOSITORY}:${{ steps.vars.outputs.branch }}-${{ steps.vars.outputs.sha_short }}
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:8.11.4 AS build-env
FROM node:14.15.0 AS build-env

WORKDIR /app/website

Expand Down

0 comments on commit e0893dc

Please sign in to comment.