@@ -43,25 +43,69 @@ jobs:
4343 registry : ${{ env.REGISTRY }}
4444 username : ${{ github.actor }}
4545 password : ${{ secrets.GITHUB_TOKEN }}
46- - name : Extract tags for Docker
47- id : meta
46+ - name : Extract tags for Docker only Node.js
47+ id : meta-node
48484949 with :
5050 images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5151 tags : |
5252 type=raw,value=latest
5353 type=raw,value=${{ env.IMAGE_UBUNTU_NODE_VERSION }}
5454 type=raw,value=${{ env.IMAGE_UBUNTU_NODE_VERSION }}.${{ env.BUILD_DATE }}
55- - name : Build and push Docker image
55+ - name : Extract tags for Docker with Nginx and Node.js
56+ id : meta-nginx
57+ 58+ with :
59+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
60+ tags : |
61+ type=raw,value=${{ env.IMAGE_UBUNTU_NODE_VERSION }}-nginx
62+ type=raw,value=${{ env.IMAGE_UBUNTU_NODE_VERSION }}-nginx.${{ env.BUILD_DATE }}
63+ - name : Extract tags for Docker with additional packages
64+ id : meta-full
65+ 66+ with :
67+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
68+ tags : |
69+ type=raw,value=${{ env.IMAGE_UBUNTU_NODE_VERSION }}-full
70+ type=raw,value=${{ env.IMAGE_UBUNTU_NODE_VERSION }}-full.${{ env.BUILD_DATE }}
71+ - name : Build and push Docker only Node.js
72+ 73+ with :
74+ context : .
75+ push : true
76+ platforms : linux/amd64,linux/arm64
77+ tags : ${{ steps.meta-node.outputs.tags }}
78+ labels : ${{ steps.meta-node.outputs.labels }}
79+ cache-from : type=gha
80+ cache-to : type=gha,mode=max
81+ build-args : |
82+ UBUNTU_VERSION=${{ env.UBUNTU_VERSION }}
83+ NODE_VERSION=${{ env.NODE_VERSION }}
84+ - name : Build and push Docker with Nginx and Node.js
85+ 86+ with :
87+ context : .
88+ push : true
89+ platforms : linux/amd64,linux/arm64
90+ tags : ${{ steps.meta-nginx.outputs.tags }}
91+ labels : ${{ steps.meta-nginx.outputs.labels }}
92+ cache-from : type=gha
93+ cache-to : type=gha,mode=max
94+ build-args : |
95+ UBUNTU_VERSION=${{ env.UBUNTU_VERSION }}
96+ NODE_VERSION=${{ env.NODE_VERSION }}
97+ ADDITIONAL_PACKAGES=nginx supervisor
98+ - name : Build and push Docker with additional packages
569957100 with :
58101 context : .
59102 push : true
60103 platforms : linux/amd64,linux/arm64
61- tags : ${{ steps.meta.outputs.tags }}
62- labels : ${{ steps.meta.outputs.labels }}
104+ tags : ${{ steps.meta-full .outputs.tags }}
105+ labels : ${{ steps.meta-full .outputs.labels }}
63106 cache-from : type=gha
64107 cache-to : type=gha,mode=max
65108 build-args : |
66109 UBUNTU_VERSION=${{ env.UBUNTU_VERSION }}
67110 NODE_VERSION=${{ env.NODE_VERSION }}
111+ ADDITIONAL_PACKAGES=nginx supervisor nano vim curl git telnet bzip2 iproute2 wget
0 commit comments