44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
on: [push]
|
|
|
|
env:
|
|
DOCKER_TLS_CERTDIR: "/certs"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker-dind
|
|
|
|
steps:
|
|
- name: Install prerequisites
|
|
shell: sh
|
|
run: |
|
|
apk update
|
|
apk add bash git openssh curl nodejs npm
|
|
|
|
- name: Configure the git remote
|
|
run: |
|
|
mkdir ~/.ssh
|
|
chmod 700 ~/.ssh
|
|
echo "${{ secrets.ALTAIR_SSH_KEY }}" > ~/.ssh/id_ed25519
|
|
chmod 600 ~/.ssh/id_ed25519
|
|
ssh-keyscan -p 999 tehga.me >> ~/.ssh/known_hosts
|
|
ssh-keyscan -p 999 doradus.tehga.me >> ~/.ssh/known_hosts
|
|
|
|
- name: Checkout the repo
|
|
run: git clone --depth 1 ssh://gitea@tehga.me:999/wasp/fj.git --branch main --single-branch /workdir
|
|
|
|
- name: Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: registry.wasp.dev
|
|
username: ${{ secrets.FJ_REGISTRY_USERNAME }}
|
|
password: ${{ secrets.FJ_REGISTRY_TOKEN }}
|
|
|
|
- name: Build and Push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
platforms: linux/amd64
|
|
push: true
|
|
tags: registry.wasp.dev/wasp/playa:latest
|