dockerize #2
17
.gitea/workflows/publish_container.yaml
Normal file
17
.gitea/workflows/publish_container.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: Docker Image CI for Gitea
|
||||||
|
|
||||||
|
on:
|
||||||
|
push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_and_publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Docker Login
|
||||||
|
run: docker login --username enub --password ${{ secrets.DOCKER_ACCESS_TOKEN }} git.villarheni.de
|
||||||
|
- name: Build Image
|
||||||
|
run: docker build . --tag git.villarheni.de/enub/password_gen:latest
|
||||||
|
- name: Push Image
|
||||||
|
run: docker push git.villarheni.de/enub/password_gen:latest
|
||||||
2
Dockerfile
Normal file
2
Dockerfile
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
FROM httpd:2.4
|
||||||
|
COPY . /usr/local/apache2/htdocs/
|
||||||
Loading…
x
Reference in New Issue
Block a user