Skip to content

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

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

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

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 }}"