@@ -13,6 +13,12 @@ concurrency:
1313 group : ${{ github.workflow }}
1414 cancel-in-progress : true
1515
16+ env :
17+ REGISTRY : ghcr.io
18+ REGISTRY_USER : ${{ github.repository_owner }}
19+ REGISTRY_PASS : ${{ secrets.GITHUB_TOKEN }}
20+ IMAGE_NAME : ${{ github.repository }}
21+
1622jobs :
1723 ci :
1824 runs-on : ubuntu-latest
2733# uses: callowayproject/bump-my-version@master
2834# with:
2935# args: patch --no-commit --verbose
30- - uses : actions/setup-python@v5
36+ - uses : actions/setup-python@v6
3137 with :
3238 python-version : ' 3.12'
3339 - run : |
5965 github_token : ${{ secrets.GITHUB_TOKEN }}
6066 publish_dir : ./frontend/dist
6167 destination_dir : dev
68+
69+ - name : Set up QEMU
70+ uses : docker/setup-qemu-action@v3
71+
72+ - name : Set up Docker Buildx
73+ uses : docker/setup-buildx-action@v3
74+
75+ - name : Login to ${{ env.REGISTRY }} registry
76+ uses : docker/login-action@v3
77+ with :
78+ registry : ${{ env.REGISTRY }}
79+ username : ${{ env.REGISTRY_USER }}
80+ password : ${{ env.REGISTRY_PASS }}
81+
82+ - name : Extract metadata (tags, labels) for Docker
83+ id : meta
84+ uses : docker/metadata-action@v5
85+ with :
86+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
87+ tags : |
88+ type=ref,event=branch
89+ type=ref,event=pr
90+ type=semver,pattern={{version}}
91+ #type=semver,pattern={{major}}.{{minor}}
92+ #type=semver,pattern={{major}}
93+
94+ - name : Build and push
95+ uses : docker/build-push-action@v6
96+ with :
97+ context : .
98+ push : true
99+ platforms : linux/amd64,linux/arm64
100+ tags : ${{ steps.meta.outputs.tags }}
101+ labels : ${{ steps.meta.outputs.labels }}
0 commit comments