Skip to content

Commit

Permalink
Create docker-image.yml action
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelThamm authored Oct 5, 2023
1 parent f55e4f0 commit e99f9d4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: |
build_time=$(date +%s)
docker build . -t michaelthamm/website-prod:$build_time
docker run --name website -d -p 5000:5000 michaelthamm/website-prod:$build_time

0 comments on commit e99f9d4

Please sign in to comment.