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 11
11
name : Build and release
12
12
runs-on : ubuntu-latest
13
13
environment : release
14
+ permissions :
15
+ # IMPORTANT: this permission is mandatory for trusted publishing
16
+ id-token : write
14
17
steps :
15
18
- name : Checkout repository
16
19
uses : actions/checkout@v4
@@ -46,17 +49,23 @@ jobs:
46
49
username : ${{ github.actor }}
47
50
password : ${{ secrets.GITHUB_TOKEN }}
48
51
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)
54
62
55
63
- name : Build and push
56
64
uses : docker/build-push-action@v5
57
65
with :
58
- context : .
66
+ platforms : linux/arm64,linux/amd64
59
67
file : docker/Dockerfile
60
68
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