Skip to content

Commit

Permalink
replace travis with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
markusressel committed Oct 7, 2020
1 parent 4890e49 commit 60dbc46
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 48 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/dockerimage-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Docker Image latest

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag markusressel/py-image-dedup:latest
- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Push the Docker image
run: docker push markusressel/py-image-dedup:latest
21 changes: 21 additions & 0 deletions .github/workflows/dockerimage-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Docker Image Release

on:
push:
tags:
- "*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# this writes the tag name into GIT_TAG_NAME
- name: Get tag name
uses: olegtarasov/get-tag@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag markusressel/py-image-dedup:$GIT_TAG_NAME
- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Push the Docker image
run: docker push markusressel/py-image-dedup:$GIT_TAG_NAME
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

4 changes: 0 additions & 4 deletions travis/docker_push

This file was deleted.

3 changes: 0 additions & 3 deletions travis/docker_push_latest

This file was deleted.

0 comments on commit 60dbc46

Please sign in to comment.