GitHub Action for building and publishing a Docker container to Docker Hub.
DOCKER_USERNAME
- Required Name of Docker Hub user which has Write accessDOCKER_PASSWORD
- Required Password of the Docker Hub userMAVEN_SETTINGS
- Optional Base64 encoded Maven settings file
Setup secrets in your GitHub project at "Settings > Secrets"
CONTAINER_TAG
: mandatory, example: 'universalresolver/driver-did-btcr:latest'DOCKER_FILE
: optional, default is Dockerfile
name: CI/CD Workflow for driver-did-btcr
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Docker Build and Push
uses: philpotisk/github-action-docker-build-push@master
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
DOCKER_FILE: docker/Dockerfile
CONTAINER_TAG: universalresolver/driver-did-btcr:latest
Copyright (c) 2021
Licensed under the Apache2 License.