- Update Alpine version for Docker container to v3.22.1
- Updated GH Actions script to cross-compile amd64 and arm64 images - Updated GH Actions modules to latest versions - Bumped version number in app.py
This commit is contained in:
9
.github/workflows/build_image.yml
vendored
9
.github/workflows/build_image.yml
vendored
@@ -18,10 +18,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v5.0.0
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
uses: docker/login-action@v3.5.0
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
@@ -29,14 +29,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Extract metadata (tags, labels) for Docker
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
uses: docker/metadata-action@v5.8.0
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
uses: docker/build-push-action@v6.18.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
platforms: linux/amd64, linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
FROM alpine:3.15.0 as build
|
FROM alpine:3.22.1 AS build
|
||||||
LABEL maintainer="Ross Stewart <rosskouk@gmail.com>"
|
LABEL maintainer="Ross Stewart <rosskouk@gmail.com>"
|
||||||
LABEL org.opencontainers.image.source https://github.com/rosskouk/asknavidrome
|
LABEL org.opencontainers.image.source=https://github.com/rosskouk/asknavidrome
|
||||||
|
|
||||||
RUN apk add python3 py3-pip git build-base python3-dev libffi-dev openssl-dev
|
RUN apk add python3 py3-pip git build-base python3-dev libffi-dev openssl-dev
|
||||||
|
|
||||||
@@ -15,8 +15,9 @@ WORKDIR /opt/asknavidrome
|
|||||||
RUN source ../env/bin/activate && pip --no-cache-dir install wheel && pip --no-cache-dir install -r skill/requirements-docker.txt
|
RUN source ../env/bin/activate && pip --no-cache-dir install wheel && pip --no-cache-dir install -r skill/requirements-docker.txt
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:3.15.0
|
FROM alpine:3.22.1
|
||||||
LABEL maintainer="Ross Stewart <rosskouk@gmail.com>"
|
LABEL maintainer="Ross Stewart <rosskouk@gmail.com>"
|
||||||
|
LABEL org.opencontainers.image.source=https://github.com/rosskouk/asknavidrome
|
||||||
|
|
||||||
RUN apk add python3
|
RUN apk add python3
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ logger.addHandler(handler)
|
|||||||
# Get service configuration
|
# Get service configuration
|
||||||
#
|
#
|
||||||
|
|
||||||
logger.info('AskNavidrome 0.6!')
|
logger.info('AskNavidrome 0.9!')
|
||||||
logger.debug('Getting configuration from the environment...')
|
logger.debug('Getting configuration from the environment...')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user