generated from pythonhealthdatascience/stars_reproduction_template
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 983 Bytes
/
docker_ghr.yaml
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
27
28
29
30
31
32
33
34
35
name: "Publish Docker image"
# Name of this action (else will name after the commits)
run-name: Publish Docker image on GitHub container registry (ghcr.io)
# Source: https://dev.to/github/publishing-a-docker-image-to-githubs-container-repository-4n50
on:
push:
branches: main
workflow_dispatch:
jobs:
Publish-docker-image:
name: Publish docker image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: |
docker build . --file reproduction/docker/Dockerfile --tag ghcr.io/pythonhealthdatascience/huang2019:latest
docker push ghcr.io/pythonhealthdatascience/huang2019:latest