mirror of
https://github.com/simple64/simple64.git
synced 2026-11-16 02:49:39 +01:00
Better snap scripts
This commit is contained in:
1 parent
dce509080e
commit
f059d856ae
5 files changed
+39
-3
No files matched your search
@@ -10,6 +10,8 @@ on:
|
||||
|
||||
env:
|
||||
SNAPCRAFT_BUILD_ENVIRONMENT: host
|
||||
PYTHON_VERSION: "3.9"
|
||||
VERSION: "v2022.2.3"
|
||||
|
||||
jobs:
|
||||
build-snap:
|
||||
@@ -17,6 +19,11 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ env.PYTHON_VERSION }}
|
||||
|
||||
- name: Get snapcraft login
|
||||
run: echo "$SNAPCRAFT_LOGIN" > $GITHUB_WORKSPACE/SNAPCRAFT_LOGIN.txt
|
||||
env:
|
||||
@@ -29,5 +36,7 @@ jobs:
|
||||
|
||||
- name: Run snapcraft
|
||||
run: |
|
||||
pip install requests
|
||||
export M64P_LINUX_URL=$(python3 ../scripts/get_linux_asset.py ${{ env.VERSION }})
|
||||
snapcraft --enable-experimental-extensions
|
||||
snapcraft upload --release=stable *.snap
|
||||
@@ -12,6 +12,7 @@ env:
|
||||
REGISTRY_USER: loganmc10
|
||||
IMAGE_REGISTRY: quay.io
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
PYTHON_VERSION: "3.9"
|
||||
VERSION: "v2022.2.3"
|
||||
|
||||
jobs:
|
||||
@@ -20,6 +21,11 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ env.PYTHON_VERSION }}
|
||||
|
||||
- name: Log in to Quay.io
|
||||
uses: redhat-actions/podman-login@v1
|
||||
with:
|
||||
@@ -29,6 +35,8 @@ jobs:
|
||||
|
||||
- name: Run podman
|
||||
run: |
|
||||
pip install requests
|
||||
export M64P_LINUX_URL=$(python3 ../scripts/get_linux_asset.py ${{ env.VERSION }})
|
||||
podman build . --tag quay.io/loganmc10/m64p:latest --tag quay.io/loganmc10/m64p:${{ env.VERSION }}
|
||||
podman push quay.io/loganmc10/m64p:latest
|
||||
podman push quay.io/loganmc10/m64p:${{ env.VERSION }}
|
||||
|
||||
Reference in new issue
Block a user