Skip to content
name: Release FlyingFish Docker Images
on:
release:
types: [published]
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
if: github.ref_type == 'tag'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Docker meta FlyingFish
id: meta_flyingfish
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/flyingfish
- name: Build and push FlyingFish
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64/v8
build-args: |
"NPM_REGISTRY=${{ secrets.NPM_REGISTRY }}"
push: ${{ github.ref_type == 'tag' }}
tags: ${{ steps.meta_flyingfish.outputs.tags }}
labels: ${{ steps.meta_flyingfish.outputs.labels }}
- name: Docker meta FlyingFish SSH
id: meta_flyingfish_ssh
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/flyingfish_ssh
- name: Build and push FlyingFish SSH
uses: docker/build-push-action@v5
with:
context: ./
file: ./sshserver/Dockerfile
platforms: linux/amd64,linux/arm64/v8
build-args: |
"NPM_REGISTRY=${{ secrets.NPM_REGISTRY }}"
push: ${{ github.ref_type == 'tag' }}
tags: ${{ steps.meta_flyingfish_ssh.outputs.tags }}
labels: ${{ steps.meta_flyingfish_ssh.outputs.labels }}
- name: Docker meta FlyingFish Himhip
id: meta_flyingfish_himhip
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/flyingfish_himip
- name: Build and push FlyingFish Himhip
uses: docker/build-push-action@v5
with:
context: ./
file: ./himhip/Dockerfile
platforms: linux/amd64,linux/arm64/v8
build-args: |
"NPM_REGISTRY=${{ secrets.NPM_REGISTRY }}"
push: ${{ github.ref_type == 'tag' }}
tags: ${{ steps.meta_flyingfish_himhip.outputs.tags }}
labels: ${{ steps.meta_flyingfish_himhip.outputs.labels }}
- name: Docker meta FlyingFish DynDnsServer
id: meta_flyingfish_dyndnsserver
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/flyingfish_ddns
- name: Build and push FlyingFish DynDnsServer
uses: docker/build-push-action@v5
with:
context: ./
file: ./ddnsserver/Dockerfile
platforms: linux/amd64,linux/arm64/v8
build-args: |
"NPM_REGISTRY=${{ secrets.NPM_REGISTRY }}"
push: ${{ github.ref_type == 'tag' }}
tags: ${{ steps.meta_flyingfish_dyndnsserver.outputs.tags }}
labels: ${{ steps.meta_flyingfish_dyndnsserver.outputs.labels }}