Skip to content

KaaS Image Build and Push to Dockerhub #3

KaaS Image Build and Push to Dockerhub

KaaS Image Build and Push to Dockerhub #3

name: Docker image
on:
push:
branches:
- '*'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- '*'
jobs:
build:
name: Build & push docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Info
run: echo "Parameters. ${{ github.event.base_ref }}, ${{ github.ref_type }}, ${{ github.ref }}"
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:src/containers/docker"
push: true
tags: kpeeples/kaas-baseline:latest