mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
chore: replace docker hub with code.forgejo.org (#799)
<!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/799): <!--number 799 --><!--line 0 --><!--description Y2hvcmU6IHJlcGxhY2UgZG9ja2VyIGh1YiB3aXRoIGNvZGUuZm9yZ2Vqby5vcmc=-->chore: replace docker hub with code.forgejo.org<!--description--> <!--end release-notes-assistant--> Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/799 Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
parent
c3c6555558
commit
79f6c54675
11 changed files with 14 additions and 16 deletions
|
@ -539,7 +539,7 @@ func TestRunner_RunWithService(t *testing.T) {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
platforms := map[string]string{
|
platforms := map[string]string{
|
||||||
"ubuntu-latest": "node:12.20.1-buster-slim",
|
"ubuntu-latest": "code.forgejo.org/oci/node:22",
|
||||||
}
|
}
|
||||||
|
|
||||||
workflowPath := "services"
|
workflowPath := "services"
|
||||||
|
|
|
@ -4,9 +4,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
FROM ubuntu:latest
|
FROM code.forgejo.org/oci/alpine:latest
|
||||||
ENV PATH="/opt/texlive/texdir/bin/x86_64-linuxmusl:${PATH}"
|
ENTRYPOINT [ "sh", "-c", "echo OK" ]
|
||||||
ENV ORG_PATH="${PATH}"
|
|
||||||
ENTRYPOINT [ "bash", "-c", "echo \"PATH=$PATH\" && echo \"ORG_PATH=$ORG_PATH\" && [[ \"$PATH\" = \"$ORG_PATH\" ]]" ]
|
|
||||||
shell: mv {0} Dockerfile
|
shell: mv {0} Dockerfile
|
||||||
- uses: ./
|
- uses: ./
|
||||||
|
|
2
act/runner/testdata/fail/push.yml
vendored
2
act/runner/testdata/fail/push.yml
vendored
|
@ -5,7 +5,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: node:16-buster-slim
|
image: code.forgejo.org/oci/node:22
|
||||||
env:
|
env:
|
||||||
TEST_ENV: test-value
|
TEST_ENV: test-value
|
||||||
steps:
|
steps:
|
||||||
|
|
2
act/runner/testdata/issue-104/main.yaml
vendored
2
act/runner/testdata/issue-104/main.yaml
vendored
|
@ -10,6 +10,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: hello
|
- name: hello
|
||||||
uses: https://code.forgejo.org/forgejo/hello-world-docker-action@v1
|
uses: https://code.forgejo.org/forgejo/hello-world-docker-action@v3
|
||||||
with:
|
with:
|
||||||
who-to-greet: "World"
|
who-to-greet: "World"
|
||||||
|
|
|
@ -5,7 +5,7 @@ jobs:
|
||||||
fail-on-invalid-credentials:
|
fail-on-invalid-credentials:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: node:16-buster-slim
|
image: code.forgejo.org/oci/node:22
|
||||||
credentials:
|
credentials:
|
||||||
username: "user"
|
username: "user"
|
||||||
password: "" # Empty password caused a crash in jobexecutor
|
password: "" # Empty password caused a crash in jobexecutor
|
||||||
|
|
4
act/runner/testdata/job-container/push.yml
vendored
4
act/runner/testdata/job-container/push.yml
vendored
|
@ -5,7 +5,7 @@ jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: node:16-buster-slim
|
image: code.forgejo.org/oci/node:22
|
||||||
env:
|
env:
|
||||||
TEST_ENV: test-value
|
TEST_ENV: test-value
|
||||||
steps:
|
steps:
|
||||||
|
@ -13,7 +13,7 @@ jobs:
|
||||||
|
|
||||||
test2:
|
test2:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: node:16-buster-slim
|
container: code.forgejo.org/oci/node:22
|
||||||
steps:
|
steps:
|
||||||
- run: echo ${TEST_ENV} | grep test-value
|
- run: echo ${TEST_ENV} | grep test-value
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -32,7 +32,7 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
- uses: ./localdockerimagetest_
|
- uses: ./localdockerimagetest_
|
||||||
# Also test a remote docker action here
|
# Also test a remote docker action here
|
||||||
- uses: https://code.forgejo.org/forgejo/hello-world-docker-action@v1
|
- uses: https://code.forgejo.org/forgejo/hello-world-docker-action@v3
|
||||||
with:
|
with:
|
||||||
who-to-greet: 'Mona the Octocat'
|
who-to-greet: 'Mona the Octocat'
|
||||||
# Test if GITHUB_ACTION_PATH is set correctly after all steps
|
# Test if GITHUB_ACTION_PATH is set correctly after all steps
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
FROM ubuntu:latest
|
FROM code.forgejo.org/oci/alpine:latest
|
||||||
CMD echo Hello
|
CMD echo Hello
|
||||||
|
|
2
act/runner/testdata/parallel/push.yml
vendored
2
act/runner/testdata/parallel/push.yml
vendored
|
@ -16,7 +16,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build]
|
needs: [build]
|
||||||
steps:
|
steps:
|
||||||
- uses: docker://node:16-buster-slim
|
- uses: docker://code.forgejo.org/oci/node:22
|
||||||
with:
|
with:
|
||||||
args: echo ${GITHUB_REF} | grep nektos/act
|
args: echo ${GITHUB_REF} | grep nektos/act
|
||||||
- uses: ./actions/docker-url
|
- uses: ./actions/docker-url
|
||||||
|
|
|
@ -5,6 +5,6 @@ jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: https://code.forgejo.org/forgejo/hello-world-docker-action@v1
|
- uses: https://code.forgejo.org/forgejo/hello-world-docker-action@v3
|
||||||
with:
|
with:
|
||||||
who-to-greet: 'Mona the Octocat'
|
who-to-greet: 'Mona the Octocat'
|
||||||
|
|
|
@ -5,7 +5,7 @@ jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: node:16-buster-slim
|
image: code.forgejo.org/oci/node:22
|
||||||
options: --user node
|
options: --user node
|
||||||
steps:
|
steps:
|
||||||
- name: check permissions of env files
|
- name: check permissions of env files
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue