-
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (24 loc) · 614 Bytes
/
docker.yml
File metadata and controls
26 lines (24 loc) · 614 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Publish Docker image
on:
push:
branches: [ "master" ]
paths:
- 'docker-compose.yml'
workflow_dispatch:
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
environment: DockerDeploy
steps:
- name: Check out the repo
uses: actions/checkout@v6
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: minnced
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build
run: docker compose build
- name: Push to Docker Hub
run: docker compose push