Skip to content

Commit

Permalink
Merge pull request #1809 from AntelopeIO/eb
Browse files Browse the repository at this point in the history
[5.0 -> main] automatically create `experimental-binaries` package on release
  • Loading branch information
spoonincode authored Oct 23, 2023
2 parents 59bf674 + 0f19c39 commit bae31f4
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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: 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.*amd64.deb'
target: ${{github.sha}}
artifact-name: leap-dev-ubuntu20-amd64
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.*amd64.deb'
target: ${{github.sha}}
artifact-name: leap-dev-ubuntu22-amd64
wait-for-exact-target-workflow: true
- name: Create Dockerfile
run: |
cat <<EOF > Dockerfile
FROM scratch
LABEL org.opencontainers.image.description="A collection of experimental Leap binary packages"
COPY *.deb /
EOF
- 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: .

0 comments on commit bae31f4

Please sign in to comment.