Skip to content

Commit 6f09ca7

Browse files
chore: add build & push action for dev
1 parent 4dfd297 commit 6f09ca7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and push Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- "dev"
7+
8+
jobs:
9+
push_to_registry:
10+
name: Build and push Docker image to Docker Hub
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Check out the repo
16+
uses: actions/checkout@v2
17+
- name: get-npm-version
18+
id: package-version
19+
uses: martinbeentjes/npm-get-version-action@main
20+
- name: Push to Docker Hub
21+
uses: docker/build-push-action@v1
22+
with:
23+
path: ./
24+
username: ${{ secrets.DOCKER_USERNAME }}
25+
password: ${{ secrets.DOCKER_PASSWORD }}
26+
repository: eoepca/open-science-catalog-frontend
27+
tags: "v${{ steps.package-version.outputs.current-version }}-dev"

0 commit comments

Comments
 (0)