Skip to content

Commit 0302790

Browse files
authored
Update docker-image.yml
1 parent 31b1a64 commit 0302790

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Build Alpine Node.js
2+
permissions:
3+
contents: read
4+
packages: write
25

36
on:
47
workflow_dispatch:
@@ -19,6 +22,14 @@ jobs:
1922
- name: Build the Docker image
2023
run: |
2124
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}} .
25+
- name: Login to GitHub Container Registry
26+
uses: docker/login-action@v1
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.actor }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
- name: Debugging with tmate
32+
uses: mxschmitt/action-tmate@v3
2233
- name: Copy alpine node.js out
2334
run: |
2435
mkdir $RUNNER_TEMP/alpine_node

0 commit comments

Comments
 (0)