1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-11-21 23:55:17 -05:00
aprsd/.github/workflows/manual_build.yml

54 lines
1.5 KiB
YAML
Raw Normal View History

2023-07-17 11:46:54 -04:00
name: Manual Build docker container
2023-06-22 10:07:20 -04:00
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
jobs:
2023-07-17 11:46:54 -04:00
2023-06-22 10:07:20 -04:00
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
2023-07-17 11:46:54 -04:00
- name: Extract Branch
id: extract_branch
run: |
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
- name: What is the selected branch?
run: |
echo "Selected Branch '${{ steps.extract_branch.outputs.branch }}'"
2023-06-22 10:07:20 -04: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-06-22 10:44:08 -04:00
platforms: linux/amd64,linux/arm64
file: ./Dockerfile
2023-06-22 10:07:20 -04:00
build-args: |
INSTALL_TYPE=github
2023-07-17 11:46:54 -04:00
BRANCH=${{ steps.extract_branch.outputs.branch }}
2023-06-22 10:07:20 -04:00
BUILDX_QEMU_ENV=true
push: true
tags: |
2023-07-17 11:46:54 -04:00
hemna6969/aprsd:${{ steps.extract_branch.outputs.branch }}