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()
|
||||
|
||||
platforms := map[string]string{
|
||||
"ubuntu-latest": "node:12.20.1-buster-slim",
|
||||
"ubuntu-latest": "code.forgejo.org/oci/node:22",
|
||||
}
|
||||
|
||||
workflowPath := "services"
|
||||
|
|
|
@ -4,9 +4,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: |
|
||||
FROM ubuntu:latest
|
||||
ENV PATH="/opt/texlive/texdir/bin/x86_64-linuxmusl:${PATH}"
|
||||
ENV ORG_PATH="${PATH}"
|
||||
ENTRYPOINT [ "bash", "-c", "echo \"PATH=$PATH\" && echo \"ORG_PATH=$ORG_PATH\" && [[ \"$PATH\" = \"$ORG_PATH\" ]]" ]
|
||||
FROM code.forgejo.org/oci/alpine:latest
|
||||
ENTRYPOINT [ "sh", "-c", "echo OK" ]
|
||||
shell: mv {0} Dockerfile
|
||||
- uses: ./
|
2
act/runner/testdata/fail/push.yml
vendored
2
act/runner/testdata/fail/push.yml
vendored
|
@ -5,7 +5,7 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:16-buster-slim
|
||||
image: code.forgejo.org/oci/node:22
|
||||
env:
|
||||
TEST_ENV: test-value
|
||||
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:
|
||||
|
||||
- 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:
|
||||
who-to-greet: "World"
|
||||
|
|
|
@ -5,7 +5,7 @@ jobs:
|
|||
fail-on-invalid-credentials:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:16-buster-slim
|
||||
image: code.forgejo.org/oci/node:22
|
||||
credentials:
|
||||
username: "user"
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:16-buster-slim
|
||||
image: code.forgejo.org/oci/node:22
|
||||
env:
|
||||
TEST_ENV: test-value
|
||||
steps:
|
||||
|
@ -13,7 +13,7 @@ jobs:
|
|||
|
||||
test2:
|
||||
runs-on: ubuntu-latest
|
||||
container: node:16-buster-slim
|
||||
container: code.forgejo.org/oci/node:22
|
||||
steps:
|
||||
- run: echo ${TEST_ENV} | grep test-value
|
||||
env:
|
||||
|
|
|
@ -32,7 +32,7 @@ runs:
|
|||
shell: bash
|
||||
- uses: ./localdockerimagetest_
|
||||
# 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:
|
||||
who-to-greet: 'Mona the Octocat'
|
||||
# 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
|
||||
|
|
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
|
||||
needs: [build]
|
||||
steps:
|
||||
- uses: docker://node:16-buster-slim
|
||||
- uses: docker://code.forgejo.org/oci/node:22
|
||||
with:
|
||||
args: echo ${GITHUB_REF} | grep nektos/act
|
||||
- uses: ./actions/docker-url
|
||||
|
|
|
@ -5,6 +5,6 @@ jobs:
|
|||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/forgejo/hello-world-docker-action@v1
|
||||
- uses: https://code.forgejo.org/forgejo/hello-world-docker-action@v3
|
||||
with:
|
||||
who-to-greet: 'Mona the Octocat'
|
||||
|
|
|
@ -5,7 +5,7 @@ jobs:
|
|||
test:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:16-buster-slim
|
||||
image: code.forgejo.org/oci/node:22
|
||||
options: --user node
|
||||
steps:
|
||||
- name: check permissions of env files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue