Create docker-image-rootless.yml

This commit is contained in:
Mohammad Naghavi 2022-06-13 09:29:17 +02:00 committed by GitHub
parent 1982b53119
commit 56aba62746
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,27 @@
name: Publish Docker rootless image
on:
workflow_dispatch:
push:
branches: [master]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Docker Login
uses: docker/login-action@v1.12.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker rootless image
uses: docker/build-push-action@v2.9.0
with:
context: .
push: true
tags: mohamnag/nginx-file-browser:latest-rootless