Skip to content

feat: Github actions #3

feat: Github actions

feat: Github actions #3

Workflow file for this run

name: Docker Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['2.0', '2.1']
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4.0.0
with:
context: novosga-${{ matrix.version }}/
push: true
tags: novosga/novosga:${{ matrix.version }}