File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change 1111 name : Build and release
1212 runs-on : ubuntu-latest
1313 environment : release
14+ permissions :
15+ # IMPORTANT: this permission is mandatory for trusted publishing
16+ id-token : write
1417 steps :
1518 - name : Checkout repository
1619 uses : actions/checkout@v4
@@ -46,17 +49,23 @@ jobs:
4649 username : ${{ github.actor }}
4750 password : ${{ secrets.GITHUB_TOKEN }}
4851
49- - name : Extract metadata (tags, labels) for Docker
50- id : meta
51- uses : docker/metadata-action@v5
52- with :
53- images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
52+ - name : Get Version
53+ id : create_release
54+ shell : python
55+ env :
56+ tag_act : ${{ github.ref }}
57+ run : |
58+ import os
59+ ref_tag = os.getenv('tag_act').split('/')[-1]
60+ with open(os.getenv('GITHUB_OUTPUT'), 'w') as f:
61+ print(f"tag_name={ref_tag}", file=f)
5462
5563 - name : Build and push
5664 uses : docker/build-push-action@v5
5765 with :
58- context : .
66+ platforms : linux/arm64,linux/amd64
5967 file : docker/Dockerfile
6068 push : true
61- tags : ${{ steps.meta.outputs.tags }}
62- labels : ${{ steps.meta.outputs.labels }}
69+ tags : |
70+ jeertmans/manim-slides:latest
71+ jeertmans/manim-slides:${{ steps.create_release.outputs.tag_name }}
You can’t perform that action at this time.
0 commit comments