Skip to content

Build and push to Docker Hub #32

Build and push to Docker Hub

Build and push to Docker Hub #32

name: Build and push to Docker Hub
on: push
jobs:
build-container:
name: Build Docker container
runs-on: ubuntu-latest
steps:
- name: Chekckout code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and push to Docker Hub
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: virittamoportal