7171
7272 - name : " Validate project metadata"
7373 run : uvx --from 'validate-pyproject[all,store]' validate-pyproject pyproject.toml
74-
74+
7575 build-and-publish :
7676 runs-on : ubuntu-latest
7777
@@ -82,36 +82,36 @@ jobs:
8282 id-token : write
8383
8484 steps :
85- - name : Checkout repository
86- uses : actions/checkout@v4
87-
88- - name : Log in to the Container registry
89- uses : docker/login-action@v3
90- with :
91- registry : ${{ env.REGISTRY }}
92- username : ${{ github.actor }}
93- password : ${{ secrets.GITHUB_TOKEN }}
94-
95- - name : Extract metadata (tags, labels) for Docker
96- id : meta
97- uses : docker/metadata-action@v5
98- with :
99- images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
100-
101- - name : Set up Docker Buildx
102- uses : docker/setup-buildx-action@v3
103-
104- - name : Build and push Docker image
105- id : push
106- uses : docker/build-push-action@v6
107- with :
108- context : ./
109- file : ./Dockerfile
110- platforms : linux/amd64
111- push : true
112- tags : ${{ steps.meta.outputs.tags }}
113- labels : ${{ steps.meta.outputs.labels }}
114- build-args : |
115- VNC_PASSWORD=${{ secrets.VNC_PASSWORD }}
116- cache-from : type=gha
117- cache-to : type=gha,mode=max
85+ - name : Checkout repository
86+ uses : actions/checkout@v4
87+
88+ - name : Log in to the Container registry
89+ uses : docker/login-action@v3
90+ with :
91+ registry : ${{ env.REGISTRY }}
92+ username : ${{ github.actor }}
93+ password : ${{ secrets.GITHUB_TOKEN }}
94+
95+ - name : Extract metadata (tags, labels) for Docker
96+ id : meta
97+ uses : docker/metadata-action@v5
98+ with :
99+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
100+
101+ - name : Set up Docker Buildx
102+ uses : docker/setup-buildx-action@v3
103+
104+ - name : Build and push Docker image
105+ id : push
106+ uses : docker/build-push-action@v6
107+ with :
108+ context : ./
109+ file : ./Dockerfile
110+ platforms : linux/amd64
111+ push : true
112+ tags : ${{ steps.meta.outputs.tags }}
113+ labels : ${{ steps.meta.outputs.labels }}
114+ build-args : |
115+ VNC_PASSWORD=${{ secrets.VNC_PASSWORD }}
116+ cache-from : type=gha
117+ cache-to : type=gha,mode=max
0 commit comments