Create docker-image-rootless.yml
This commit is contained in:
parent
1982b53119
commit
56aba62746
1 changed files with 27 additions and 0 deletions
27
.github/workflows/docker-image-rootless.yml
vendored
Normal file
27
.github/workflows/docker-image-rootless.yml
vendored
Normal 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
|
Loading…
Reference in a new issue