Skip to content

add docker publish workflow #3

add docker publish workflow

add docker publish workflow #3

# CI with maven build and scan
name: CI docker build
on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- snapshot
release:
types: [published]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
# Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0
- name: Echo ref name trigger
run: echo ${{ github.ref_name }}
- name: Set up QEMU
uses: docker/setup-qemu-action@master
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@master
- name: Login to Docker Hub
uses: docker/login-action@master
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@master
with:
context: .
file: Dockerfile
platforms: linux/amd64
#,linux/arm64
push: true
tags: fugeritorg/opencmis:${{ github.ref_name }}
#,fugeritorg/fj-daogen-quarkus-demo:latest