Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.0] automatically create experimental-binaries package on release #1797

Merged
merged 4 commits into from
Oct 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: Create Dockerfile
run: |
cat <<EOF > Dockerfile
FROM scratch
LABEL org.opencontainers.image.description="A collection of experimental Leap binary packages"
COPY *.deb /
ericpassmore marked this conversation as resolved.
Show resolved Hide resolved
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
wait-for-exact-target-workflow: true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compared to #1795, fail-on-missing-target: false has been removed. I added that so the workflow would work on 3.x or 4.x or 5.x, but that's not needed since the workflow on the tagged ref is used.

- 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
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: .