1
0
Fork 0
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:
Earl Warren 2025-08-02 21:55:57 +00:00 committed by earl-warren
parent c3c6555558
commit 79f6c54675
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201
11 changed files with 14 additions and 16 deletions

View file

@ -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"

View file

@ -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: ./

View file

@ -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:

View file

@ -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"

View file

@ -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

View file

@ -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:

View file

@ -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

View file

@ -1,2 +1,2 @@
FROM ubuntu:latest
FROM code.forgejo.org/oci/alpine:latest
CMD echo Hello

View file

@ -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

View file

@ -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'

View file

@ -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