ci: fix runner job (docker-cli has no node, clone via git)
This commit is contained in:
1 parent
9caaae4950
commit
e21312655f
1 file changed
+10
-6
@@ -8,21 +8,25 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: [docker-cli]
|
runs-on: [docker-cli]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout (no node needed)
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
apk add --no-cache git >/dev/null
|
||||||
- name: Login to Gitea Registry
|
git clone --depth 1 https://git.niklashmotion.art/Hermes/minecraft-bedrock-server.git repo
|
||||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.niklashmotion.art -u Hermes --password-stdin
|
cd repo && git log --oneline -1
|
||||||
|
|
||||||
- name: Build image (fresh FEX PPA + fresh Ubuntu rootfs)
|
- name: Build image (fresh FEX PPA + fresh Ubuntu rootfs)
|
||||||
run: |
|
run: |
|
||||||
|
cd repo
|
||||||
docker pull ubuntu:24.04
|
docker pull ubuntu:24.04
|
||||||
DOCKER_BUILDKIT=1 docker build --build-arg EMULATOR=fex \
|
DOCKER_BUILDKIT=1 docker build --build-arg EMULATOR=fex \
|
||||||
-t git.niklashmotion.art/hermes/fex-bedrock-stack:latest \
|
-t git.niklashmotion.art/hermes/fex-bedrock-stack:latest \
|
||||||
-t git.niklashmotion.art/hermes/fex-bedrock-stack:$(date +%Y%m%d) .
|
-t git.niklashmotion.art/hermes/fex-bedrock-stack:$(date +%Y%m%d) .
|
||||||
|
|
||||||
- name: Push to Gitea Registry
|
- name: Push to Gitea Registry
|
||||||
run: docker push --all-tags git.niklashmotion.art/hermes/fex-bedrock-stack
|
run: |
|
||||||
|
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.niklashmotion.art -u Hermes --password-stdin
|
||||||
|
docker push --all-tags git.niklashmotion.art/hermes/fex-bedrock-stack
|
||||||
|
docker logout git.niklashmotion.art
|
||||||
|
|
||||||
- name: Sync local tag (no container restart)
|
- name: Sync local tag (no container restart)
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user