build new image
Some checks failed
🐳 Build ubuntu-latest Runner Image / build (push) Failing after 1s
Some checks failed
🐳 Build ubuntu-latest Runner Image / build (push) Failing after 1s
This commit is contained in:
@@ -16,29 +16,14 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
# Runs in our custom ubuntu-act-runner image (Node 20 + Docker CLI + git)
|
||||
# Docker daemon is the DinD sidecar via DOCKER_HOST=tcp://localhost:2376
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: 🔎 Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 🐳 Install Docker CLI
|
||||
run: |
|
||||
apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
gnupg
|
||||
install -m 0755 -d /etc/apt/keyrings
|
||||
curl -fsSL https://download.docker.com/linux/debian/gpg \
|
||||
-o /etc/apt/keyrings/docker.asc
|
||||
chmod a+r /etc/apt/keyrings/docker.asc
|
||||
echo "deb [arch=$(dpkg --print-architecture) \
|
||||
signed-by=/etc/apt/keyrings/docker.asc] \
|
||||
https://download.docker.com/linux/debian \
|
||||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" \
|
||||
> /etc/apt/sources.list.d/docker.list
|
||||
apt-get update && apt-get install -y --no-install-recommends docker-ce-cli
|
||||
|
||||
- name: 🏷️ Set Image Tags
|
||||
id: tags
|
||||
run: |
|
||||
@@ -78,11 +63,9 @@ jobs:
|
||||
docker push ${{ steps.tags.outputs.tag_sha }}
|
||||
|
||||
- name: 📨 Telegram Notification
|
||||
if: always()
|
||||
run: |
|
||||
STATUS="${{ job.status }}"
|
||||
TEXT="🐳 Build: ansible-act-runner:${{ steps.tags.outputs.short_sha }}%0AStatus: ${STATUS}"
|
||||
curl -s -X POST \
|
||||
"https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \
|
||||
-d "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}" \
|
||||
-d "text=${TEXT}"
|
||||
if: always()
|
||||
-d "text=🐳 Build ansible-act-runner:${{ steps.tags.outputs.short_sha }} — ${{ job.status }}"
|
||||
|
||||
Reference in New Issue
Block a user