Skip to content

Merge pull request #92 from siemens/feat/admin_obligations_1 #20

Merge pull request #92 from siemens/feat/admin_obligations_1

Merge pull request #92 from siemens/feat/admin_obligations_1 #20

# SPDX-FileCopyrightText: 2024 Kaushlendra Pratap <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push main image
uses: docker/build-push-action@v4
with:
push: true
tags: fossology/licensedb:latest
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Log out from Docker Hub
run: docker logout