Skip to content

🔧 Fix bundler version to 2.4.22 (#115) #2

🔧 Fix bundler version to 2.4.22 (#115)

🔧 Fix bundler version to 2.4.22 (#115) #2

name: ♻️ Push Docker Image
on:
workflow_dispatch:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker Image
runs-on: ubuntu-latest
steps:

Check failure on line 12 in .github/workflows/cdci-push-docker-image.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cdci-push-docker-image.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push
uses: docker/build-push-action@v4
with:
push: true
tags: ministryofjustice/tech-docs-github-pages-publisher:latest
- name: Report failure to Slack
if: always()
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
notify_when: "failure"
notification_title: "Failed GitHub Action Run"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}