From 079cd0184494ee8fcc6bf37b50febffea97a1218 Mon Sep 17 00:00:00 2001 From: Alexey <34266885+v1km4n@users.noreply.github.com> Date: Tue, 30 Apr 2024 02:05:00 +0300 Subject: [PATCH] Addition of GitHub Actions workflow (#188) * 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 --- .github/workflows/push-docker-image.yml | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/push-docker-image.yml diff --git a/.github/workflows/push-docker-image.yml b/.github/workflows/push-docker-image.yml new file mode 100644 index 0000000..839253b --- /dev/null +++ b/.github/workflows/push-docker-image.yml @@ -0,0 +1,29 @@ +name: neue Docker Image Push + +on: + release: + types: [released] + +jobs: + push-docker-image: + runs-on: ubuntu-latest + steps: + - name: check repository + uses: actions/checkout@v4 + + - name: login to docker registry + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: test github actions variable + run: echo "${{ github.event.release.tag_name }}" + +# - name: build and push docker image to registry +# uses: docker/build-push-action@v5 +# with: +# push: true +# tags: | +# simploka/neue:latest +# simploka/neue:${{ github.event.release.tag_name }}