Skip to content

Commit f165166

Browse files
authored
feat: add github action envs on dockerfile
1 parent 011b183 commit f165166

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

.env

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Github action settings
2-
GITHUB_RUNNER_NAME=windows_x64_vagrant
3-
GITHUB_RUNNER_VERSION=2.306.0
4-
GITHUB_RUNNER_FILE=actions-runner-win-x64-${GITHUB_RUNNER_VERSION}.zip
5-
GITHUB_RUNNER_URL=https://github.com/actions/runner/releases/download/v${GITHUB_RUNNER_VERSION}/${GITHUB_RUNNER_FILE}
6-
GITHUB_RUNNER_LABELS=windows,win_x64,windows_x64
71
PAT=<Replace with your personal access token>
82
ORGANIZATION_URL=<Organization url>
93
# Vagrant image settings

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ RUN curl -O https://releases.hashicorp.com/vagrant/2.2.19/vagrant_2.2.19_x86_64.
2525
vagrant box add --provider libvirt peru/windows-server-2022-standard-x64-eval && \
2626
vagrant init peru/windows-server-2022-standard-x64-eval
2727

28+
# Github action settings
29+
ENV GITHUB_RUNNER_NAME=windows_x64_vagrant
30+
ENV GITHUB_RUNNER_VERSION=2.306.0
31+
ENV GITHUB_RUNNER_FILE=actions-runner-win-x64-${GITHUB_RUNNER_VERSION}.zip
32+
ENV GITHUB_RUNNER_URL=https://github.com/actions/runner/releases/download/v${GITHUB_RUNNER_VERSION}/${GITHUB_RUNNER_FILE}
33+
ENV GITHUB_RUNNER_LABELS=windows,win_x64,windows_x64,windows_vagrant_action
34+
2835
COPY Vagrantfile /
2936
COPY startup.sh /
3037
RUN chmod +x startup.sh

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ A implementation of windows github custom runner based on vagrant VM, libvirt an
1212
- Organization URL
1313
- PAT: Personal access token
1414
```
15-
# Github action settings
16-
GITHUB_RUNNER_NAME=windows_x64_vagrant
17-
GITHUB_RUNNER_VERSION=2.305.0
18-
GITHUB_RUNNER_FILE=actions-runner-win-x64-${GITHUB_RUNNER_VERSION}.zip
19-
GITHUB_RUNNER_URL=https://github.com/actions/runner/releases/download/v${GITHUB_RUNNER_VERSION}/${GITHUB_RUNNER_FILE}
20-
GITHUB_RUNNER_LABELS=windows,win_x64,windows_x64
2115
PAT=<Replace with your personal access token>
2216
ORGANIZATION_URL=<Organization url>
2317
# Vagrant image settings

0 commit comments

Comments
 (0)