Skip to content

Commit

Permalink
Create docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoutigeWolf authored Oct 25, 2024
1 parent 65888a2 commit cb973fa
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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
tags: ${{ secrets.REGISTRY_URL }}/ov-tracker-api:latest

- name: Restart docker container
uses: JamesIves/fetch-api-data-action@v2
with:
endpoint: ${{ secrets.RESTART_URL }}
configuration: |
{
"method": "POST"
}

0 comments on commit cb973fa

Please sign in to comment.