Build and Sync latest erlang #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Sync latest erlang | ||
on: | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
workflow_dispatch: | ||
jobs: | ||
build-sync: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
cfg: | ||
#- { DISTRO_LATEST: "rockylinux_8", PLATFORM: "linux-amd64", RUNNER: "ubuntu-latest"} | ||
- { DISTRO_LATEST: "rockylinux_8", PLATFORM: "linux-arm64", RUNNER: "ubuntu-22.04-arm64"} | ||
runs-on: ${{ RUNNER }} | ||
Check failure on line 16 in .github/workflows/latest_erl.yaml GitHub Actions / Build and Sync latest erlangInvalid workflow file
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Docker buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build the package | ||
env: | ||
GPG_PASS: ${{ secrets.GPG_PASS }} | ||
ERLANG_VERSION: ${{ github.event.inputs.ERLANG_VERSION }} | ||
JFROG_USER: ${{ secrets.JFROG_USER }} | ||
JFROG_API_KEY: ${{ secrets.JFROG_API_KEY }} | ||
run: | | ||
echo "Building ..." | ||
echo "Distro latest ${{ matrix.cfg.DISTRO_LATEST }}" | ||
echo "Platform ${{ matrix.cfg.PLATFORM }}" | ||
echo "${{secrets.GPG_P_KEY}}" | tr ';' '\n' > GPG-KEY-pmanager | ||
export GPG_PASS=${{secrets.GPG_PASS}} | ||
export GPG_KEY_ID=${{secrets.GPG_KEY_ID}} | ||
make "erlang_${{ env.ERLANG_VERSION }}_${{matrix.cfg.DISTRO_LATEST}}_${{matrix.cfg.PLATFORM}}" | ||
find ./ -type f -name "GPG-KEY*" -delete | ||
- id: upload-to-artifactory | ||
run: | | ||
cd build | ||
curl -L -u${{ env.JFROG_USER }}:${{ env.JFROG_API_KEY }} -XPUT https://sifi.jfrog.io/artifactory/rpm-local/rockylinux/8/ -T build/rockylinux/8/* |