diff --git a/.github/workflows/publish-image.yml b/.github/workflows/cd-docker-hub.yml similarity index 75% rename from .github/workflows/publish-image.yml rename to .github/workflows/cd-docker-hub.yml index f90699cb7..a7d72588d 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/cd-docker-hub.yml @@ -7,7 +7,7 @@ # To get a newer version, you will need to update the SHA. # You can also reference a tag or branch, but the action may change without warning. -name: Create and publish a Docker image +name: Build and push Docker image to Docker Hub on: workflow_dispatch: @@ -16,13 +16,11 @@ on: types: [ published ] env: - REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7 jobs: build_and_push_image: - name: Build and push Docker image runs-on: ubuntu-22.04 permissions: contents: read @@ -49,16 +47,7 @@ jobs: id: meta uses: docker/metadata-action@v4 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - - name: Build and push image to GHCR - uses: docker/build-push-action@v3 - with: - context: . - push: true - platforms: ${{ env.PLATFORMS }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + images: ajustesen/${{ env.IMAGE_NAME }} - name: Log in to Docker Hub uses: docker/login-action@v2 @@ -66,12 +55,6 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v4 - with: - images: ajustesen/${{ env.IMAGE_NAME }} - - name: Build and push image to Docker Hub uses: docker/build-push-action@v3 with: diff --git a/.github/workflows/cd-ghcr.yml b/.github/workflows/cd-ghcr.yml new file mode 100644 index 000000000..1b9baa8b8 --- /dev/null +++ b/.github/workflows/cd-ghcr.yml @@ -0,0 +1,60 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# GitHub recommends pinning actions to a commit SHA. +# To get a newer version, you will need to update the SHA. +# You can also reference a tag or branch, but the action may change without warning. + +name: Build and push Docker image to GHCR + +on: + workflow_dispatch: + release: + branches: [ main ] + types: [ published ] + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7 + +jobs: + build_and_push_image: + runs-on: ubuntu-22.04 + permissions: + contents: read + packages: write + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Log in to the Container registry + uses: docker/login-action@v2 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v4 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + + - name: Build and push image to GHCR + uses: docker/build-push-action@v3 + with: + context: . + push: true + platforms: ${{ env.PLATFORMS }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/app/Providers/FilamentServiceProvider.php b/app/Providers/FilamentServiceProvider.php index 3477be05a..e82e444fc 100644 --- a/app/Providers/FilamentServiceProvider.php +++ b/app/Providers/FilamentServiceProvider.php @@ -32,7 +32,7 @@ public function boot() return true; }); - FilamentVersions::addItem('Speedtest Tracker', 'v0.5.0'); + FilamentVersions::addItem('Speedtest Tracker', 'v0.6.1'); Filament::serving(function () { Filament::registerNavigationGroups([ diff --git a/docker/8.1/Dockerfile b/docker/8.1/Dockerfile index 4ce7afad1..20f19b315 100644 --- a/docker/8.1/Dockerfile +++ b/docker/8.1/Dockerfile @@ -15,12 +15,7 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN apt-get update \ && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 cron \ - && mkdir -p ~/.gnupg \ - && chmod 600 ~/.gnupg \ - && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \ - && echo "keyserver hkp://keyserver.ubuntu.com:80" >> ~/.gnupg/dirmngr.conf \ - && gpg --recv-key 0x14aa40ec0831756756d7f66c4f4ea0aae5267a6c \ - && gpg --export 0x14aa40ec0831756756d7f66c4f4ea0aae5267a6c > /usr/share/keyrings/ppa_ondrej_php.gpg \ + && curl -sS 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x14aa40ec0831756756d7f66c4f4ea0aae5267a6c' | gpg --dearmor | tee /usr/share/keyrings/ppa_ondrej_php.gpg > /dev/null \ && echo "deb [signed-by=/usr/share/keyrings/ppa_ondrej_php.gpg] https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy main" > /etc/apt/sources.list.d/ppa_ondrej_php.list \ && apt-get update \ && apt-get install -y php8.1-cli php8.1-dev \