Skip to content

Commit

Permalink
Create docker-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoutigeWolf authored Dec 18, 2024
1 parent 2359c83 commit 512a9a4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docker-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy Docker

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

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: 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"
}

0 comments on commit 512a9a4

Please sign in to comment.