Skip to content

Commit

Permalink
docker imgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yucked authored Jun 18, 2024
1 parent 162b394 commit e4a670f
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4.1.5
- name: Checkout
uses: actions/checkout@v4.1.5

- name: Setup .NET Core
uses: actions/setup-dotnet@v4.0.0
Expand All @@ -32,3 +33,34 @@ jobs:
run: |
wget https://raw.githubusercontent.com/Yucked/Scripy/master/Powershell/ActionSend.ps1
pwsh .\ActionSend.ps1 ${{ secrets.WEBHOOK }} ${{ job.status }}
publish:
name: Publish to GitHub
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Docker Login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Normalize repository name
id: norm_name
run: |
echo IMAGE_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
- name: Build and push Docker images
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
ghcr.io/${{ env.IMAGE_NAME }}:latest
ghcr.io/${{ env.IMAGE_NAME }}:${{ github.run_number }}

0 comments on commit e4a670f

Please sign in to comment.