Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
f2140e8
1
Parent(s):
5fb5267
Also push to ghcr.io
Browse files
.github/workflows/docker_deploy.yml
CHANGED
@@ -26,6 +26,19 @@ jobs:
|
|
26 |
steps:
|
27 |
- name: Checkout
|
28 |
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
- name: Docker meta
|
30 |
id: meta
|
31 |
uses: docker/metadata-action@v4
|
@@ -33,6 +46,7 @@ jobs:
|
|
33 |
# list of Docker images to use as base name for tags
|
34 |
images: |
|
35 |
mcranmer/pysr
|
|
|
36 |
# generate Docker tags based on the following events/attributes
|
37 |
tags: |
|
38 |
type=schedule
|
@@ -47,12 +61,6 @@ jobs:
|
|
47 |
uses: docker/setup-qemu-action@v2
|
48 |
- name: Set up Docker Buildx
|
49 |
uses: docker/setup-buildx-action@v2
|
50 |
-
- name: Login to Docker Hub
|
51 |
-
uses: docker/login-action@v2
|
52 |
-
if: github.event_name != 'pull_request'
|
53 |
-
with:
|
54 |
-
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
55 |
-
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
56 |
- name: Build and push
|
57 |
uses: docker/build-push-action@v3
|
58 |
with:
|
|
|
26 |
steps:
|
27 |
- name: Checkout
|
28 |
uses: actions/checkout@v3
|
29 |
+
- name: Login to Docker Hub
|
30 |
+
uses: docker/login-action@v2
|
31 |
+
if: github.event_name != 'pull_request'
|
32 |
+
with:
|
33 |
+
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
34 |
+
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
35 |
+
- name: Login to GitHub registry
|
36 |
+
uses: docker/login-action@v2
|
37 |
+
if: github.event_name != 'pull_request'
|
38 |
+
with:
|
39 |
+
registry: ghcr.io
|
40 |
+
username: ${{ github.repository_owner }}
|
41 |
+
password: ${{ secrets.GITHUB_TOKEN }}
|
42 |
- name: Docker meta
|
43 |
id: meta
|
44 |
uses: docker/metadata-action@v4
|
|
|
46 |
# list of Docker images to use as base name for tags
|
47 |
images: |
|
48 |
mcranmer/pysr
|
49 |
+
ghcr.io/${{ github.repository }}
|
50 |
# generate Docker tags based on the following events/attributes
|
51 |
tags: |
|
52 |
type=schedule
|
|
|
61 |
uses: docker/setup-qemu-action@v2
|
62 |
- name: Set up Docker Buildx
|
63 |
uses: docker/setup-buildx-action@v2
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
- name: Build and push
|
65 |
uses: docker/build-push-action@v3
|
66 |
with:
|