From 0302790be283395aff5b30459f03e826619b6825 Mon Sep 17 00:00:00 2001 From: Tingluo Huang Date: Fri, 22 Oct 2021 10:23:50 -0400 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index a2e7b5a..cf0baa1 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,4 +1,7 @@ name: Build Alpine Node.js +permissions: + contents: read + packages: write on: workflow_dispatch: @@ -19,6 +22,14 @@ jobs: - name: Build the Docker image run: | docker build --file Dockerfile --tag alpine_nodejs:${{github.event.inputs.NodeVersion}} --build-arg NodeVersion=${{github.event.inputs.NodeVersion}} --build-arg PythonVersion=${{github.event.inputs.PythonVersion}} . + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Debugging with tmate + uses: mxschmitt/action-tmate@v3 - name: Copy alpine node.js out run: | mkdir $RUNNER_TEMP/alpine_node