Skip to content

Commit b10c265

Browse files
author
Agus Makmun
committed
fix: failed to build docker image on push to dockerhub job v3
1 parent 6ce2594 commit b10c265

File tree

9 files changed

+14
-21
lines changed

9 files changed

+14
-21
lines changed

.github/workflows/push-image.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77

88
env:
99
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
10-
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
10+
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
11+
DOCKER_TAG: ${{ github.ref }}
1112

1213
jobs:
1314
push-to-dockerhub:
@@ -17,22 +18,14 @@ jobs:
1718
- name: Checkout code
1819
uses: actions/checkout@v2
1920

20-
- name: Set Docker tag
21-
env:
22-
DOCKER_TAG: ${{ github.ref }}
23-
run: |
24-
DOCKER_TAG=${DOCKER_TAG#refs/tags/}
25-
DOCKER_TAG=${DOCKER_TAG/\//-}
26-
echo "DOCKER_TAG=$DOCKER_TAG" >> $GITHUB_ENV
27-
2821
- name: Build Docker image
2922
run: docker build -t $DOCKER_HUB_USERNAME/django-markdown-editor:$DOCKER_TAG .
3023

3124
- name: Log in to Docker Hub
32-
uses: docker/login-action@v1
33-
with:
34-
username: $DOCKER_HUB_USERNAME
35-
password: $DOCKER_HUB_PASSWORD
25+
run: docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_TOKEN
26+
env:
27+
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
28+
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
3629

3730
- name: Push Docker image
3831
run: docker push $DOCKER_HUB_USERNAME/django-markdown-editor:$DOCKER_TAG

martor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
__VERSION__ = "1.6.22"
3+
__VERSION__ = "1.6.23"
44
__RELEASE_DATE__ = "20-Mar-2023"
55
__AUTHOR__ = "Agus Makmun (Summon Agus)"
66
__AUTHOR_EMAIL__ = "summon.agus@gmail.com"

martor/static/martor/css/martor-admin.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/css/martor.bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/css/martor.semantic.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/js/martor.bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Name : Martor v1.6.22
2+
* Name : Martor v1.6.23
33
* Created by : Agus Makmun (Summon Agus)
44
* Release date : 20-Mar-2023
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007

martor/static/martor/js/martor.bootstrap.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/js/martor.semantic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Name : Martor v1.6.22
2+
* Name : Martor v1.6.23
33
* Created by : Agus Makmun (Summon Agus)
44
* Release date : 20-Mar-2023
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007

martor/static/martor/js/martor.semantic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)