Skip to content

Update docker-deploy.yml #9

Update docker-deploy.yml

Update docker-deploy.yml #9

Workflow file for this run

name: Deploy Docker
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "./AH-UN Schedule API"
steps:
- uses: actions/checkout@v4
- name: Docker login
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: List files in the current working directory
run: |
ls -R
- name: Build and push to local registry
uses: docker/build-push-action@v6
with:
push: true
file: "AH-UN Schedule API/Dockerfile"
tags: ${{ secrets.REGISTRY_URL }}/ah-un-schedule:latest
- name: Restart docker container
uses: JamesIves/fetch-api-data-action@v2
with:
endpoint: ${{ secrets.RESTART_URL }}
configuration: |
{
"method": "POST"
}