Skip to content

Merge pull request #31 from adriel/dependabot/github_actions/docker/b… #28

Merge pull request #31 from adriel/dependabot/github_actions/docker/b…

Merge pull request #31 from adriel/dependabot/github_actions/docker/b… #28

name: Publish Docker image
on:
push:
branches: [ master ]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Set DATE var
run: echo "DATE=$(date '+%Y-%m-%d_%H.%M.%S')" >> $GITHUB_ENV
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
push: true
tags: |
${{ secrets.DOCKER_USERNAME }}/h265ize:latest
"${{ secrets.DOCKER_USERNAME }}/h265ize:${{ env.DATE }}"