Skip to content

Docker Image CI

Docker Image CI #10

Workflow file for this run

name: Docker Image CI
on:
workflow_dispatch:
push:
paths:
- src/**
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: docker/login-action@v3
name: Login to Docker Hub
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: actions/checkout@v4
- name: Build the Docker image and push to the docker registery
run: |
docker build . \
--tag moalhaddar/docx-to-pdf:latest \
--tag moalhaddar/docx-to-pdf:2.1.0-${{github.run_attempt}}
docker push moalhaddar/docx-to-pdf:latest
docker push moalhaddar/docx-to-pdf:2.1.0-${{github.run_number}}