Update build #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')}} |