add: nodejs #89
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build image | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| name: Build image | |
| runs-on: ubuntu-latest | |
| env: | |
| IMAGE_NAME: image | |
| REGISTRY: ghcr.io/queil | |
| steps: | |
| - name: Clone the repository | |
| uses: actions/checkout@v3 | |
| - name: "Fix no space left on device" | |
| run: rm -rf /opt/hostedtoolcache | |
| # -- first build & push base so it can be reused downstream | |
| - name: base | |
| id: base | |
| uses: redhat-actions/buildah-build@v2 | |
| with: | |
| image: ${{ env.IMAGE_NAME }} | |
| tags: latest ${{ github.sha }} | |
| context: . | |
| containerfiles: | | |
| ./images/Containerfile | |
| - name: Log in to the GitHub Container registry | |
| uses: redhat-actions/podman-login@v1 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Push base | |
| uses: redhat-actions/push-to-registry@v2 | |
| with: | |
| image: ${{ steps.base.outputs.image }} | |
| tags: ${{ steps.base.outputs.tags }} | |
| registry: ${{ env.REGISTRY }} | |
| # -- build the rest of the variants | |
| # ---- AKS ---- | |
| # - name: aks | |
| # id: aks | |
| # uses: redhat-actions/buildah-build@v2 | |
| # with: | |
| # image: ${{ env.IMAGE_NAME }} | |
| # tags: aks | |
| # context: . | |
| # containerfiles: | | |
| # ./images/aks.Containerfile | |
| # - name: Push aks | |
| # uses: redhat-actions/push-to-registry@v2 | |
| # with: | |
| # image: ${{ steps.aks.outputs.image }} | |
| # tags: ${{ steps.aks.outputs.tags }} | |
| # registry: ${{ env.REGISTRY }} | |
| # ---- DEVOPS ---- | |
| # - name: devops | |
| # id: devops | |
| # uses: redhat-actions/buildah-build@v2 | |
| # with: | |
| # image: ${{ env.IMAGE_NAME }} | |
| # tags: devops | |
| # context: . | |
| # containerfiles: | | |
| # ./images/devops.Containerfile | |
| # | |
| # - name: Push devops | |
| # uses: redhat-actions/push-to-registry@v2 | |
| # with: | |
| # image: ${{ steps.devops.outputs.image }} | |
| # tags: ${{ steps.devops.outputs.tags }} | |
| # registry: ${{ env.REGISTRY }} | |
| # ---- HUGO ---- | |
| # - name: hugo | |
| # id: hugo | |
| # uses: redhat-actions/buildah-build@v2 | |
| # with: | |
| # image: ${{ env.IMAGE_NAME }} | |
| # tags: hugo | |
| # context: . | |
| # containerfiles: | | |
| # ./images/hugo.Containerfile | |
| # - name: Push hugo | |
| # uses: redhat-actions/push-to-registry@v2 | |
| # with: | |
| # image: ${{ steps.hugo.outputs.image }} | |
| # tags: ${{ steps.hugo.outputs.tags }} | |
| # registry: ${{ env.REGISTRY }} | |
| - name: nodejs | |
| id: nodejs | |
| uses: redhat-actions/buildah-build@v2 | |
| with: | |
| image: ${{ env.IMAGE_NAME }} | |
| tags: nodejs | |
| context: . | |
| containerfiles: | | |
| ./images/nodejs.Containerfile | |
| - name: Push nodejs | |
| uses: redhat-actions/push-to-registry@v2 | |
| with: | |
| image: ${{ steps.nodejs.outputs.image }} | |
| tags: ${{ steps.nodejs.outputs.tags }} | |
| registry: ${{ env.REGISTRY }} | |
| # ---- MKDOCS ---- | |
| # - name: mkdocs | |
| # id: mkdocs | |
| # uses: redhat-actions/buildah-build@v2 | |
| # with: | |
| # image: ${{ env.IMAGE_NAME }} | |
| # tags: mkdocs | |
| # context: . | |
| # containerfiles: | | |
| # ./images/mkdocs.Containerfile | |
| # | |
| # - name: Push mkdocs | |
| # uses: redhat-actions/push-to-registry@v2 | |
| # with: | |
| # image: ${{ steps.mkdocs.outputs.image }} | |
| # tags: ${{ steps.mkdocs.outputs.tags }} | |
| # registry: ${{ env.REGISTRY }} | |
| # ---- CDK ---- | |
| # - name: cdk | |
| # id: cdk | |
| # uses: redhat-actions/buildah-build@v2 | |
| # with: | |
| # image: ${{ env.IMAGE_NAME }} | |
| # tags: cdk | |
| # context: . | |
| # containerfiles: | | |
| # ./images/cdk.Containerfile | |
| # | |
| # - name: Push cdk | |
| # uses: redhat-actions/push-to-registry@v2 | |
| # with: | |
| # image: ${{ steps.cdk.outputs.image }} | |
| # tags: ${{ steps.cdk.outputs.tags }} | |
| # registry: ${{ env.REGISTRY }} | |
| # ---- DOTNET 8 ---- | |
| - name: dotnet-8 | |
| id: dotnet8 | |
| uses: redhat-actions/buildah-build@v2 | |
| with: | |
| image: ${{ env.IMAGE_NAME }} | |
| tags: dotnet-8 | |
| context: . | |
| containerfiles: | | |
| ./images/dotnet-8.Containerfile | |
| - name: Push dotnet-8 | |
| uses: redhat-actions/push-to-registry@v2 | |
| with: | |
| image: ${{ steps.dotnet8.outputs.image }} | |
| tags: ${{ steps.dotnet8.outputs.tags }} | |
| registry: ${{ env.REGISTRY }} | |
| - name: aks-dotnet | |
| id: aks-dotnet | |
| uses: redhat-actions/buildah-build@v2 | |
| with: | |
| image: ${{ env.IMAGE_NAME }} | |
| tags: aks-dotnet | |
| context: . | |
| containerfiles: | | |
| ./images/aks-dotnet.Containerfile | |
| - name: Push aks-dotnet | |
| uses: redhat-actions/push-to-registry@v2 | |
| with: | |
| image: ${{ steps.aks-dotnet.outputs.image }} | |
| tags: ${{ steps.aks-dotnet.outputs.tags }} | |
| registry: ${{ env.REGISTRY }} | |
| # ---- RUST ---- | |
| # - name: rust | |
| # id: rust | |
| # uses: redhat-actions/buildah-build@v2 | |
| # with: | |
| # image: ${{ env.IMAGE_NAME }} | |
| # tags: rust | |
| # context: . | |
| # containerfiles: | | |
| # ./images/rust.Containerfile | |
| # | |
| # - name: Push rust | |
| # uses: redhat-actions/push-to-registry@v2 | |
| # with: | |
| # image: ${{ steps.rust.outputs.image }} | |
| # tags: ${{ steps.rust.outputs.tags }} | |
| # registry: ${{ env.REGISTRY }} | |
| # # ---- PYTHON ---- | |
| # | |
| # - name: python | |
| # id: python | |
| # uses: redhat-actions/buildah-build@v2 | |
| # with: | |
| # image: ${{ env.IMAGE_NAME }} | |
| # tags: python | |
| # context: . | |
| # containerfiles: | | |
| # ./images/python.Containerfile | |
| # | |
| # - name: Push python | |
| # uses: redhat-actions/push-to-registry@v2 | |
| # with: | |
| # image: ${{ steps.python.outputs.image }} | |
| # tags: ${{ steps.python.outputs.tags }} | |
| # registry: ${{ env.REGISTRY }} |