From 4e6dbc6c3f52e4503c0ffbdd1af434871413d1ca Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Wed, 18 Oct 2023 15:29:44 -0400 Subject: [PATCH] create experimental-binaries package on release --- .github/workflows/release.yaml | 54 ++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000000..4d161380e4 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,54 @@ +name: Release Actions + +on: + release: + types: [published] + +jobs: + eb: + name: experimental-binaries + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + actions: read + steps: + - name: Create Dockerfile + run: | + cat < Dockerfile + FROM scratch + LABEL org.opencontainers.image.description="A collection of experimental Leap binary packages" + COPY *.deb / + EOF + - name: Get ubuntu20 leap-dev.deb + uses: AntelopeIO/asset-artifact-download-action@v3 + with: + owner: ${{github.repository_owner}} + repo: ${{github.event.repository.name}} + file: leap-dev.deb + target: ${{github.sha}} + artifact-name: leap-dev-ubuntu20-amd64 + fail-on-missing-target: false + wait-for-exact-target-workflow: true + - name: Get ubuntu22 leap-dev.deb + uses: AntelopeIO/asset-artifact-download-action@v3 + with: + owner: ${{github.repository_owner}} + repo: ${{github.event.repository.name}} + file: leap-dev.deb + target: ${{github.sha}} + artifact-name: leap-dev-ubuntu22-amd64 + fail-on-missing-target: false + wait-for-exact-target-workflow: true + - name: Login to ghcr + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{github.repository_owner}} + password: ${{github.token}} + - name: Build and push experimental-binaries + uses: docker/build-push-action@v3 + with: + push: true + tags: ghcr.io/${{github.repository_owner}}/experimental-binaries:${{github.ref_name}} + context: .