From f439cdfcaca78a76af64fdfd70442fc00740c357 Mon Sep 17 00:00:00 2001 From: Alexey <34266885+v1km4n@users.noreply.github.com> Date: Tue, 30 Apr 2024 02:25:50 +0300 Subject: [PATCH] Addition of GitHub Actions workflow (#191) * changed the name of discord token env variable to be consistent with readme.md * added github actions workflow for building and pushing docker image to dockerhub on release * changed workflow to actually build and push to dockerhub * changed workflow to not use variable * changed workflow to not use a secret for the dockerhub username --- .github/workflows/push-docker-image.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push-docker-image.yml b/.github/workflows/push-docker-image.yml index 790d96a..def2f63 100644 --- a/.github/workflows/push-docker-image.yml +++ b/.github/workflows/push-docker-image.yml @@ -6,8 +6,6 @@ on: jobs: push-docker-image: - env: - docker_repo: simploka/neue runs-on: ubuntu-latest steps: - name: check repository @@ -16,7 +14,7 @@ jobs: - name: login to docker registry uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} + username: simploka password: ${{ secrets.DOCKERHUB_TOKEN }} - name: build and push docker image to registry @@ -24,5 +22,5 @@ jobs: with: push: true tags: | - ${{ docker_repo }}:${{ github.event.release.tag_name }} - ${{ docker_repo }}:latest + simploka/neue:${{ github.event.release.tag_name }} + simploka/neue:latest