Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:wastebasket: Removes obsolete Docker actions

Alicia Sykesfd2bf9c88701
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
deleted file mode 100644
index ceb7e138..00000000
--- a/.github/workflows/docker-image.yml
+++ /dev/null
@@ -1,96 +0,0 @@
-# Builds, scans and tests the multi-architecture docker image
-# Then releases it to the DockerHub, GHCR and Quay registries
-name: 🐳 Build + Publish Multi-Platform Image
-
-on:
- push:
- branches: ['master']
- tags: [v*]
-
-env:
- DH_IMAGE: ${{ secrets.DOCKER_REPO }}
- GH_IMAGE: ${{ github.repository_owner }}/${{ github.event.repository.name }}
-
-jobs:
- docker:
- runs-on: ubuntu-latest
- permissions: { contents: read, packages: write }
- if: "!contains(github.event.head_commit.message, '[ci-skip]')"
-
- steps:
- - name: πŸ›ŽοΈ Checkout Repo
- uses: actions/checkout@v2
-
- - name: πŸ”– Get App Version
- uses: tyankatsu0105/read-package-version-actions@v1
- id: package-version
-
- # - name: ✨ Validate Dockerfile
- # uses: ghe-actions/dockerfile-validator@v1
- # with:
- # dockerfile: 'Dockerfile'
- # lint: 'hadolint'
-
- - name: πŸ—‚οΈ Make Docker Meta
- id: meta
- uses: docker/metadata-action@v3
- with:
- images: |
- ${{ env.DH_IMAGE }}
- ghcr.io/${{ env.GH_IMAGE }}
- ${{ secrets.ACR_SERVER }}/${{ secrets.ACR_USERNAME }}
- tags: |
- type=ref,event=tag,prefix=release-,suffix={{tag}}
- type=semver,pattern={{raw}},value=${{ steps.package-version.outputs.version }}
- labels: |
- maintainer=Lissy93
- org.opencontainers.image.title=Dashy
- org.opencontainers.image.description=A self-hosted startpage for your server
- org.opencontainers.image.documentation=https://dashy.to/docs
- org.opencontainers.image.authors=Alicia Sykes
- org.opencontainers.image.licenses=MIT
-
- - name: πŸ”§ Set up QEMU
- uses: docker/setup-qemu-action@v1
-
- - name: πŸ”§ Set up Docker Buildx
- uses: docker/setup-buildx-action@v1
-
- - name: πŸ”‘ Login to DockerHub
- uses: docker/login-action@v1
- with:
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_PASSWORD }}
-
- - name: πŸ”‘ Login to GitHub Container Registry
- uses: docker/login-action@v1
- with:
- registry: ghcr.io
- username: ${{ github.repository_owner }}
- password: ${{ secrets.GITHUB_TOKEN }}
-
- - name: πŸ”‘ Login to Azure Container Registry
- uses: docker/login-action@v1
- with:
- registry: ${{ secrets.ACR_SERVER }}
- username: ${{ secrets.ACR_USERNAME }}
- password: ${{ secrets.ACR_PASSWORD }}
-
- - name: βš’οΈ Build and push
- uses: docker/build-push-action@v2
- with:
- context: .
- file: ./docker/Dockerfile-multi-arch
- platforms: linux/amd64,linux/arm64,linux/arm/v7
- tags: ${{ steps.meta.outputs.tags }}
- labels: ${{ steps.meta.outputs.labels }}
- push: true
-
- - name: πŸ’¬ Set Docker Hub Description
- uses: peter-evans/dockerhub-description@v2
- with:
- repository: lissy93/dashy
- readme-filepath: ./README.md
- short-description: Dashy - A self-hosted start page for your server
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_PASSWORD }}
diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml
deleted file mode 100644
index 523f7710..00000000
--- a/.github/workflows/docker-release.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-# Test and build the Docker container after a release
-# Then push it to GH container registry if all checks pass
-name: Build & Publish Docker Image
-on:
- release:
- types: [published]
-env:
- REGISTRY: ghcr.io
- IMAGE_NAME: ${{ github.repository }}
-jobs:
- build-and-push-image:
- runs-on: ubuntu-latest
- permissions:
- contents: read
- packages: write
- steps:
- # Get the code
- - name: Checkout repository πŸ›ŽοΈ
- uses: actions/checkout@v2
- # Log into ghcr.io
- - name: Log in to the Container registry πŸ”‘
- uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
- with:
- registry: ${{ env.REGISTRY }}
- username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
- # Get release version, for Docker tag
- - name: Extract metadata (tags, labels) for Docker πŸ—‚οΈ
- id: meta
- uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
- with:
- images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- # Build the container, and push if successful
- - name: Build and push Docker image βš’οΈ
- uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
- with:
- context: .
- push: true
- tags: ${{ steps.meta.outputs.tags }}
- labels: ${{ steps.meta.outputs.labels }}