Updated makefile and docker for publish
This commit is contained in:
parent
6c238508e2
commit
acf0978d76
6
.github/workflows/docker-publish.yml
vendored
6
.github/workflows/docker-publish.yml
vendored
@ -1,8 +1,8 @@
|
||||
name: Docker CI
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
@ -20,4 +20,4 @@ jobs:
|
||||
|
||||
- name: Build and Push from Makefile
|
||||
run: |
|
||||
make build
|
||||
make build publish
|
||||
|
6
Makefile
6
Makefile
@ -1,4 +1,4 @@
|
||||
DOCKER_IMAGE=cubetiq/node-excel2json
|
||||
DOCKER_IMAGE=cubetiq/excel2json
|
||||
|
||||
build:
|
||||
@echo "Building docker image..."
|
||||
@ -8,4 +8,8 @@ run:
|
||||
@echo "Running container..."
|
||||
docker run --rm -t ${DOCKER_IMAGE}
|
||||
|
||||
publish:
|
||||
@echo "Pubishing docker image..."
|
||||
docker push ${DOCKER_IMAGE}
|
||||
|
||||
.PHONY: build
|
||||
|
Loading…
Reference in New Issue
Block a user