Production 7.0.4 Docker Build #177
This file contains hidden or 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: Production 7.0.4 Docker Build | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 2 * * *' # run at 2 AM UTC | |
| jobs: | |
| build: | |
| # Only run from master branch on the main repository | |
| if: github.repository_owner == 'openemr' && github.repository == 'openemr/openemr-devops' && github.ref == 'refs/heads/master' | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v4 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Get build date | |
| id: build_date | |
| run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT" | |
| - name: Build and push 7.0.4 docker | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: "{{defaultContext}}:docker/openemr/7.0.4" | |
| tags: openemr/openemr:7.0.4, openemr/openemr:7.0.4.0, openemr/openemr:7.0.4.0-${{ steps.build_date.outputs.date }} | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| no-cache: true | |
| - name: Push Docker Hub readme | |
| uses: ./.github/actions/push-dockerhub-readme | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} |