Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
VillSource committed Mar 2, 2024
2 parents fe4afcb + cdac84e commit 8e7c4b3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

name: Publish Image to GHCR
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
publish-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: |
docker build -f ./src/PictureStorageService/Dockerfile . --tag ghcr.io/untitlecms/picture-storage-service:v0
docker push ghcr.io/untitlecms/picture-storage-service:v0
1 change: 1 addition & 0 deletions src/PictureStorageService/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
LABEL org.opencontainers.image.source = "https://github.com/UntitleCMS/PictureStorageService"
WORKDIR /app
EXPOSE 80

Expand Down

0 comments on commit 8e7c4b3

Please sign in to comment.