Skip to content

Commit b41251b

Browse files
committed
Replaced Travis with Github actions
1 parent 53530d9 commit b41251b

File tree

5 files changed

+92
-55
lines changed

5 files changed

+92
-55
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Docker build
2+
on:
3+
pull_request:
4+
branches: [master]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
- name: Build image
12+
run: docker build .
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Buildx latest
2+
on:
3+
push:
4+
branches: [master]
5+
paths-ignore:
6+
- .github/workflows/buildx-release.yml
7+
- .github/workflows/dockerhub-description.yml
8+
- .github/workflows/greetings.yml
9+
- .github/workflows/labels.yml
10+
- .github/workflows/misspell.yml
11+
- .github/workflows/security.yml
12+
- .dockerignore
13+
- .gitignore
14+
- docker-compose.yml
15+
- LICENSE
16+
- README.md
17+
- title.svg
18+
jobs:
19+
buildx:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Buildx setup
24+
uses: crazy-max/ghaction-docker-buildx@v1
25+
with:
26+
version: latest
27+
- name: Dockerhub login
28+
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u qmcgaw --password-stdin 2>&1
29+
- name: Run Buildx
30+
run: |
31+
docker buildx build \
32+
--progress plain \
33+
--platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7 \
34+
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
35+
--build-arg VCS_REF=`git rev-parse --short HEAD` \
36+
--build-arg VERSION=latest \
37+
-t qmcgaw/ddns-updater:latest \
38+
--push \
39+
.
40+
- run: curl -X POST https://hooks.microbadger.com/images/qmcgaw/ddns-updater/t2fcZxog8ce_kJYJ61JjkYwHF5s= || exit 0
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Buildx release
2+
on:
3+
release:
4+
types: [published]
5+
paths-ignore:
6+
- .github/workflows/buildx-latest.yml
7+
- .github/workflows/dockerhub-description.yml
8+
- .github/workflows/greetings.yml
9+
- .github/workflows/labels.yml
10+
- .github/workflows/misspell.yml
11+
- .github/workflows/security.yml
12+
- .dockerignore
13+
- .gitignore
14+
- docker-compose.yml
15+
- LICENSE
16+
- README.md
17+
- title.svg
18+
jobs:
19+
buildx:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- id: buildx
24+
uses: crazy-max/ghaction-docker-buildx@v1
25+
with:
26+
version: latest
27+
- name: Dockerhub login
28+
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u qmcgaw --password-stdin 2>&1
29+
- name: Run Buildx
30+
run: |
31+
docker buildx build \
32+
--progress plain \
33+
--platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7 \
34+
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
35+
--build-arg VCS_REF=`git rev-parse --short HEAD` \
36+
--build-arg VERSION=${GITHUB_REF##*/} \
37+
-t qmcgaw/ddns-updater:${GITHUB_REF##*/} \
38+
--push \
39+
.
40+
- run: curl -X POST https://hooks.microbadger.com/images/qmcgaw/ddns-updater/t2fcZxog8ce_kJYJ61JjkYwHF5s= || exit 0

.travis.yml

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

ci.sh

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

0 commit comments

Comments
 (0)