Skip to content

Commit

Permalink
making docker builder workflow react on release, image public push ad…
Browse files Browse the repository at this point in the history
…ded, but still 'docker-image.yml' is not ready
  • Loading branch information
Sarverott committed Oct 25, 2024
1 parent ec57f70 commit 73f102d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Docker Image CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
release:
types: [ published ]

jobs:

Expand All @@ -14,5 +12,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set tag for image
run: tagname=$(date +%s)
- name: Build the Docker image
run: docker build . --file Dockerfile --tag rokita:$(date +%s)
run: docker build . --file Dockerfile -t sarverott/rokita:$tagname
- name: Release public image in docker's repo
run: docker push sarverott/rokita:$tagname

0 comments on commit 73f102d

Please sign in to comment.