mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-11-02 03:54:01 +01:00
74 lines
2.0 KiB
YAML
74 lines
2.0 KiB
YAML
name: build-test
|
|
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ vars.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ github.token }}
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build latest
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ./docker/default.Dockerfile
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
tags: |
|
|
ghcr.io/sissbruecker/linkding:test
|
|
target: linkding
|
|
push: true
|
|
|
|
- name: Build latest-alpine
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ./docker/alpine.Dockerfile
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
tags: |
|
|
ghcr.io/sissbruecker/linkding:test-alpine
|
|
target: linkding
|
|
push: true
|
|
|
|
- name: Build latest-plus
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ./docker/default.Dockerfile
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
tags: |
|
|
ghcr.io/sissbruecker/linkding:test-plus
|
|
target: linkding-plus
|
|
push: true
|
|
|
|
- name: Build latest-plus-alpine
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ./docker/alpine.Dockerfile
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
tags: |
|
|
ghcr.io/sissbruecker/linkding:test-plus-alpine
|
|
target: linkding-plus
|
|
push: true
|