Skip to content

Commit e9ea10d

Browse files
committed
ci: probe docker container actions
1 parent 98d60ca commit e9ea10d

3 files changed

Lines changed: 42 additions & 0 deletions

File tree

‎.github/probe-docker/Dockerfile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM alpine:3
2+
ENTRYPOINT ["sh", "-c", "id && touch /github/workspace/written-by-container && ls -ln /github/workspace | head -5"]

‎.github/probe-docker/action.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: Probe docker container action
2+
description: Writes a file into the workspace as the container user.
3+
runs:
4+
using: docker
5+
image: Dockerfile

‎.github/workflows/probe.yml‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Probe release runners
2+
3+
on:
4+
push:
5+
branches: [probe/release-runners]
6+
7+
permissions: {}
8+
9+
jobs:
10+
docker-action:
11+
name: docker container actions (2x4)
12+
runs-on: nscloud-ubuntu-24.04-amd64-2x4
13+
timeout-minutes: 10
14+
steps:
15+
- uses: actions/checkout@v7
16+
with:
17+
persist-credentials: false
18+
- name: Local Dockerfile action writing into the workspace
19+
uses: ./.github/probe-docker
20+
- name: Reclaim the container's file
21+
run: |
22+
set -euo pipefail
23+
ls -ln written-by-container
24+
sudo chown "$(id -u):$(id -g)" written-by-container
25+
echo ok >> written-by-container
26+
ls -ln written-by-container
27+
- name: The pinned Crowdin action
28+
id: crowdin
29+
uses: crowdin/github-action@8f01d54f70f1713ee3f09d82c2bbb2daeac28689 # v2.17.1
30+
with:
31+
command: --version
32+
- name: Crowdin action output
33+
env:
34+
OUT: ${{ steps.crowdin.outputs.command_output }}
35+
run: test -n "$OUT" && echo "$OUT"

0 commit comments

Comments
 (0)