-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (26 loc) · 933 Bytes
/
podman.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## "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 }}