Skip to content

Merge pull request #13 from formio/FIO-7777-upgrade-to-Node.js-20-in-… #23

Merge pull request #13 from formio/FIO-7777-upgrade-to-Node.js-20-in-…

Merge pull request #13 from formio/FIO-7777-upgrade-to-Node.js-20-in-… #23

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')}}