2022-11-26 18:28:14 -05:00
|
|
|
name: Build specific version
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
aprsd_version:
|
|
|
|
required: true
|
|
|
|
options:
|
2023-09-01 14:51:55 -04:00
|
|
|
- 3.0.0
|
2022-11-26 18:28:14 -05:00
|
|
|
logLevel:
|
|
|
|
description: 'Log level'
|
|
|
|
required: true
|
|
|
|
default: 'warning'
|
|
|
|
type: choice
|
|
|
|
options:
|
|
|
|
- info
|
|
|
|
- warning
|
|
|
|
- debug
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Get Branch Name
|
|
|
|
id: branch-name
|
2024-02-07 08:55:24 -05:00
|
|
|
uses: tj-actions/branch-names@v8
|
2022-11-26 18:28:14 -05:00
|
|
|
- name: Setup QEMU
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
- name: Setup Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Login to Docker HUB
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build the Docker image
|
|
|
|
uses: docker/build-push-action@v3
|
|
|
|
with:
|
|
|
|
context: "{{defaultContext}}:docker"
|
2023-07-20 14:44:46 -04:00
|
|
|
platforms: linux/amd64,linux/arm64
|
2022-11-26 18:28:14 -05:00
|
|
|
file: ./Dockerfile
|
|
|
|
build-args: |
|
2022-12-12 19:29:45 -05:00
|
|
|
VERSION=${{ inputs.aprsd_version }}
|
2022-12-15 13:05:22 -05:00
|
|
|
BUILDX_QEMU_ENV=true
|
2022-11-26 18:28:14 -05:00
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
hemna6969/aprsd:v${{ inputs.aprsd_version }}
|
2022-12-12 19:49:51 -05:00
|
|
|
hemna6969/aprsd:latest
|