This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
forked from PrefectHQ/prefect
-
Notifications
You must be signed in to change notification settings - Fork 2
103 lines (88 loc) · 3.27 KB
/
republish-images.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: Publish Docker images
# Workflow for publishing images that failed to push during release
# Images must have built.
on:
workflow_dispatch:
inputs:
sha:
description: "Git SHA to publish images for. Images must be built already."
type: string
required: true
jobs:
publish-docker-images:
name: Publish to DockerHub
environment: "prod"
runs-on: ubuntu-latest
steps:
- name: Download image artifacts for Python 3.7
uses: actions/download-artifact@v3
with:
name: release-image-${{ inputs.sha }}-3.7
path: /tmp/3.7/
- name: Download image artifacts for Python 3.8
uses: actions/download-artifact@v3
with:
name: release-image-${{ inputs.sha }}-3.8
path: /tmp/3.8/
- name: Download image artifacts for Python 3.9
uses: actions/download-artifact@v3
with:
name: release-image-${{ inputs.sha }}-3.9
path: /tmp/3.9/
- name: Download image artifacts for Python 3.10
uses: actions/download-artifact@v3
with:
name: release-image-${{ inputs.sha }}-3.10
path: /tmp/3.10/
- name: Download image artifacts for Python 3.11
uses: actions/download-artifact@v3
with:
name: release-image-${{ inputs.sha }}-3.11
path: /tmp/3.11/
- name: Download conda image artifacts for Python 3.7
uses: actions/download-artifact@v3
with:
name: release-image-${{ inputs.sha }}-3.7-conda
path: /tmp/3.7/
- name: Download conda image artifacts for Python 3.8
uses: actions/download-artifact@v3
with:
name: release-image-${{ inputs.sha }}-3.8-conda
path: /tmp/3.8/
- name: Download conda image artifacts for Python 3.9
uses: actions/download-artifact@v3
with:
name: release-image-${{ inputs.sha }}-3.9-conda
path: /tmp/3.9/
- name: Download conda image artifacts for Python 3.10
uses: actions/download-artifact@v3
with:
name: release-image-${{ inputs.sha }}-3.10-conda
path: /tmp/3.10/
# Not yet available, see note at top
# - name: Download conda image artifacts for Python 3.11
# uses: actions/download-artifact@v3
# with:
# name: release-image-${{ inputs.sha }}-3.11-conda
# path: /tmp/3.11/
- name: Load images
run: |
docker load --input /tmp/3.7/image.tar
docker load --input /tmp/3.8/image.tar
docker load --input /tmp/3.9/image.tar
docker load --input /tmp/3.10/image.tar
docker load --input /tmp/3.11/image.tar
docker load --input /tmp/3.7/image-conda.tar
docker load --input /tmp/3.8/image-conda.tar
docker load --input /tmp/3.9/image-conda.tar
docker load --input /tmp/3.10/image-conda.tar
# Not yet available, see note at top
# docker load --input /tmp/3.11/image-conda.tar
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push images
run: |
docker image push --all-tags prefecthq/prefect