Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from StartAutomating/Docking-Emoji
Emoji 0.1.5
- Loading branch information
Showing
12 changed files
with
254 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
name: Dock Emoji | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
paths-ignore: | ||
- 'docs/**' | ||
- '*.help.txt' | ||
- '*.md' | ||
jobs: | ||
DockEmoji: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@master | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@master | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@master | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
env: | ||
IMAGE_NAME: ${{ github.repository }} | ||
REGISTRY: ghcr.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@{ | ||
'runs-on'='ubuntu-latest' | ||
'permissions' = @{ | ||
'contents'='read' | ||
'packages'='write' | ||
} | ||
steps = @( | ||
@{ | ||
'name'='Checkout repository' | ||
'uses'='actions/checkout@v4' | ||
}, | ||
@{ | ||
'name'='Log in to the Container registry' | ||
'uses'='docker/login-action@master' | ||
'with'=@{ | ||
'registry'='${{ env.REGISTRY }}' | ||
'username'='${{ github.actor }}' | ||
'password'='${{ secrets.GITHUB_TOKEN }}' | ||
} | ||
}, | ||
@{ | ||
'name'='Extract metadata (tags, labels) for Docker' | ||
'id'='meta' | ||
'uses'='docker/metadata-action@master' | ||
'with'=@{ | ||
'images'='${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}' | ||
} | ||
}, | ||
@{ | ||
'name'='Build and push Docker image' | ||
'uses'='docker/build-push-action@master' | ||
'with'=@{ | ||
'context'='.' | ||
'push'='true' | ||
'tags'='${{ steps.meta.outputs.tags }}' | ||
'labels'='${{ steps.meta.outputs.labels }}' | ||
} | ||
} | ||
|
||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@{ | ||
push = @{ | ||
branches =@('main','master') | ||
"paths-ignore" = @("docs/**","*.help.txt", "*.md") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM mcr.microsoft.com/powershell | ||
ENV PSModulePath ./Modules | ||
COPY . ./Modules/Emoji | ||
RUN pwsh -c "New-Item -Path /root/.config/powershell/Microsoft.PowerShell_profile.ps1 -Value 'Import-Module Emoji' -Force" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<# | ||
.SYNOPSIS | ||
Gets an Emoji as HTML | ||
.DESCRIPTION | ||
Gets an Emoji as an HTML span | ||
.EXAMPLE | ||
(Get-Emoji -Name 'Grinning Face').HTML | ||
#> | ||
param() | ||
|
||
"<span>$([Web.HttpUtility]::HtmlEncode($this.Emoji))</span>" |