Skip to content

Commit e7e6eaf

Browse files
authored
Merge pull request #10 from thecodingmachine/migrat_to_github_actions
Migrating to Github Actions
2 parents f6a7916 + 2fd92d4 commit e7e6eaf

File tree

2 files changed

+51
-23
lines changed

2 files changed

+51
-23
lines changed

.github/workflows/workflow.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Docker NodeJS Images GitHub workflow
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'master'
7+
push:
8+
branches:
9+
- 'master'
10+
schedule:
11+
- cron: '43 4 * * 0'
12+
13+
jobs:
14+
build_test_maybe_release:
15+
strategy:
16+
matrix:
17+
include:
18+
- variant: '6'
19+
- variant: '8'
20+
- variant: '10'
21+
- variant: '12'
22+
- variant: '14'
23+
- variant: '6-apache'
24+
- variant: '8-apache'
25+
- variant: '10-apache'
26+
- variant: '12-apache'
27+
- variant: '14-apache'
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Set up QEMU
31+
uses: docker/setup-qemu-action@v1
32+
- name: Set up Docker Buildx
33+
uses: docker/setup-buildx-action@v1
34+
- uses: actions/checkout@v1
35+
- name: Build and test
36+
run: |
37+
BRANCH="master" VARIANT="${{ matrix.variant }}" ./build-and-test.sh
38+
docker images | grep thecodingmachine/nodejs
39+
- name: Login to DockerHub
40+
# Merge ~ push.
41+
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
42+
uses: docker/login-action@v1
43+
with:
44+
username: ${{ secrets.DOCKERHUB_USERNAME }}
45+
password: ${{ secrets.DOCKERHUB_TOKEN }}
46+
- name: Release
47+
# Merge ~ push.
48+
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
49+
run: |
50+
docker push thecodingmachine/nodejs:${{ matrix.variant}}
51+
docker tag thecodingmachine/nodejs:${{ matrix.variant }}

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)