File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 5757
5858 - name : Publish to PyPI
5959 uses : pypa/gh-action-pypi-publish@release/v1
60+
61+ docker :
62+ runs-on : ubuntu-latest
63+ needs : check
64+ environment : release
65+ permissions :
66+ contents : read
67+ packages : write
68+ steps :
69+ - uses : actions/checkout@v4
70+
71+ - name : Docker meta
72+ id : meta
73+ uses : docker/metadata-action@v5
74+ with :
75+ images : |
76+ ghcr.io/${{ github.repository }}
77+ tags : |
78+ type=ref,event=branch
79+ type=ref,event=tag
80+ type=ref,event=pr
81+ type=pep440,pattern={{version}}
82+ type=pep440,pattern={{major}}.{{minor}}
83+ type=pep440,pattern={{major}}
84+ type=sha,prefix=sha-
85+ type=raw,value=latest,enable={{is_default_branch}}
86+
87+ - name : Set up QEMU
88+ uses : docker/setup-qemu-action@v3
89+
90+ - name : Set up Docker Buildx
91+ uses : docker/setup-buildx-action@v3
92+
93+ - name : Login to GitHub Container Registry
94+ uses : docker/login-action@v3
95+ with :
96+ registry : ghcr.io
97+ username : ${{ github.repository_owner }}
98+ password : ${{ secrets.GITHUB_TOKEN }}
99+
100+ - name : Build and publish Docker image
101+ uses : docker/build-push-action@v5
102+ with :
103+ context : .
104+ file : .dockerfiles/Dockerfile
105+ push : true
106+ tags : ${{ steps.meta.outputs.tags }}
107+ labels : ${{ steps.meta.outputs.labels }}
108+ cache-from : type=gha
109+ cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
1818
1919## [ Unreleased]
2020
21+ ### Fixed
22+
23+ - Added back Docker publishing to ` release.yml ` GitHub Actions workflow.
24+
2125## [ 0.4.0]
2226
2327### Added
You can’t perform that action at this time.
0 commit comments