From d40927d1c3f0890f79cb76d8b0c537e0ecf887e6 Mon Sep 17 00:00:00 2001 From: Hemna Date: Sat, 26 Nov 2022 18:28:14 -0500 Subject: [PATCH] added workflow for building specific version --- .github/workflows/release_build.yml | 47 +++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/release_build.yml diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml new file mode 100644 index 0000000..c622872 --- /dev/null +++ b/.github/workflows/release_build.yml @@ -0,0 +1,47 @@ +name: Build specific version + +on: + workflow_dispatch: + inputs: + aprsd_version: + required: true + options: + - 2.5.9 + 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 + uses: tj-actions/branch-names@v6 + - 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" + platforms: linux/amd64,linux/arm64,linux/arm/v7 + file: ./Dockerfile + build-args: | + APRSD_VERSION=${{ inputs.aprsd_version }} + push: true + tags: | + hemna6969/aprsd:v${{ inputs.aprsd_version }}