Skip to content

Merge pull request #455 from EOEPCA/dev #33

Merge pull request #455 from EOEPCA/dev

Merge pull request #455 from EOEPCA/dev #33

name: Build and push Docker Image
on:
push:
branches:
- "main"
jobs:
push_to_registry:
name: Build and push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to Docker Hub
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: "eoepca/open-science-catalog-frontend:v${{ steps.package-version.outputs.current-version }}"