Skip to content

Commit

Permalink
adding docker registry
Browse files Browse the repository at this point in the history
  • Loading branch information
BryonLewis committed Aug 25, 2023
1 parent e633dfb commit 7a23bcb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Docker Images
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
name: Publish Docker Container
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push web
uses: docker/build-push-action@v3
with:
context: .
file: small-docker/girder.Dockerfile
tags: ghcr.io/bryonlewis/dive-dsa-slicer/dive-dsa-slicer:latest
push: true
7 changes: 7 additions & 0 deletions small-docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: "3.8"
services:
dive-dsa-slicer:
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/bryonlewis/dive-dsa-slicer/dive-dsa-slicer:${TAG:-latest}

0 comments on commit 7a23bcb

Please sign in to comment.