54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
on: [push]
|
|
jobs:
|
|
desec-script:
|
|
runs-on: docker
|
|
container:
|
|
image: node:latest
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v6
|
|
|
|
- run: |
|
|
cd server-scripts/desec-ip-sync/
|
|
whoami
|
|
apt update
|
|
apt install ca-certificates curl
|
|
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
|
|
|
|
tee /etc/apt/sources.list.d/docker.sources <<EOF
|
|
Types: deb
|
|
URIs: https://download.docker.com/linux/debian
|
|
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
|
|
Components: stable
|
|
Signed-By: /etc/apt/keyrings/docker.asc
|
|
EOF
|
|
|
|
apt update
|
|
apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
|
|
|
|
- name: Login to Forgejo Container Registry
|
|
uses: docker/login-action@v4
|
|
with:
|
|
registry: git.devdoes.work
|
|
username: devaine
|
|
password: ${{ secrets.USER_TOKEN }}
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v4
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
tags: devaine/desec-script:latest
|
|
|
|
#- run: |
|
|
# ls -la
|
|
# echo "test"
|
|
|