readded docker building on push

This commit is contained in:
stratumadev 2025-10-11 01:53:17 +02:00
parent e623e5d2f7
commit 2f292b4363
2 changed files with 33 additions and 2 deletions

32
.github/workflows/docker.yml vendored Normal file
View file

@ -0,0 +1,32 @@
# This workflow will build a Node project with Docker
name: build and push docker image
on:
push:
branches: [master]
workflow_dispatch:
jobs:
build-node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@v2.9.0
with:
github-token: ${{ github.token }}
push: ${{ github.ref == 'refs/heads/master' }}
tags: |
"multidl/multi-downloader-nx:latest"
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

View file

@ -144,7 +144,6 @@ jobs:
github-token: ${{ github.token }}
push: true
tags: |
multidl/multi-downloader-nx:${{ github.event.release.tag_name }}
multidl/multi-downloader-nx:latest
"multidl/multi-downloader-nx:${{ github.event.release.tag_name }}"
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}