Skip to content

Commit

Permalink
Trying fix github action bug with release event
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroCN7 committed Sep 9, 2021
1 parent 2f925ab commit b56e6eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/create_release_docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
release:
types: [published, created, edited]
types: [published, edited]

env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
Expand All @@ -18,12 +18,14 @@ jobs:
with:
owner: jajimer
repo: energym
- name: Read release information and build container image
- name: Build container image with release tag
env:
TAG: ${{ steps.tag_version.outputs.latest_tag }}
#TAG_DATE: ${{ steps.tag_version.outputs.latest_tag_published_at }}
run: docker build . --file Dockerfile --build-arg ENERGYM_EXTRAS=[extras] --tag $DOCKER_USER/energym:$TAG
- name: Login Docker Hub
run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Push container built with release tag
env:
TAG: ${{ steps.tag_version.outputs.latest_tag }}
run: docker push $DOCKER_USER/energym:$TAG

0 comments on commit b56e6eb

Please sign in to comment.