Skip to content

Update package.json #15

Update package.json

Update package.json #15

Workflow file for this run

name: Build & Push to Dockerhub
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to Dockerhub
run: echo ${{secrets.DOCKERHUB_ACCESS_TOKEN}} | docker login -u ${{vars.DOCKERHUB_USERNAME}} --password-stdin
- name: Build the Docker image
run: docker build -f deployment/docker/Dockerfile -t formio/pdf-libs:${{github.ref_name}} .
- name: Push the Docker image
run: docker push formio/pdf-libs:${{github.ref_name}}
- name: Push latest
run: |
docker tag formio/pdf-libs:${{github.ref_name}} formio/pdf-libs:latest
docker push formio/pdf-libs:latest
if: ${{!contains(github.ref_name, 'rc')}}