Update docker.sh #121
This file contains 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
## "GitHub's Ubuntu action runners come with Podman preinstalled". See in https://github.com/redhat-actions/podman-login | |
name: podman test | |
on: | |
push: | |
env: | |
REGISTRY_USER: ${{ github.actor }} | |
REGISTRY_PASSWORD: ${{ github.token }} | |
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} | |
jobs: | |
nodejs: | |
runs-on: ubuntu-latest | |
steps: | |
- run: loginctl enable-linger $(whoami) | |
# validating https://github.com/quarckster/blog.misharov.pro/discussions/14#discussioncomment-3556833 | |
- run: systemctl restart --user podman | |
- uses: actions/checkout@v2 | |
- run: npm i | |
working-directory: nodejs | |
- run: npm run podman-test | |
working-directory: nodejs | |
- name: Log in to ghcr.io | |
uses: redhat-actions/podman-login@v1 | |
with: | |
username: ${{ env.REGISTRY_USER }} | |
password: ${{ env.REGISTRY_PASSWORD }} | |
registry: ${{ env.IMAGE_REGISTRY }} |