Skip to content

Commit

Permalink
Merge pull request #2 from rody/github-workflow
Browse files Browse the repository at this point in the history
build: add github workflow to build and publish image
  • Loading branch information
rody authored Nov 2, 2021
2 parents 16a3034 + 8dc2ed9 commit d6fcbd6
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish-docker-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build and publish latest version

on:
push:
branches:
- 'master'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: rawdee/pmd:latest

0 comments on commit d6fcbd6

Please sign in to comment.