This commit is contained in:
parent
bc26a51c01
commit
673d56903d
2
.github/workflows/Deploy-docker.yml
vendored
2
.github/workflows/Deploy-docker.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: docker build -t gitea.kleinsense.nl/dariusklein/klein_todo:latest ./server/.
|
run: docker build -t gitea.kleinsense.nl/dariusklein/klein_todo:latest -f server/Dockerfile .
|
||||||
- name: Docker login
|
- name: Docker login
|
||||||
run: docker login gitea.kleinsense.nl -p ${{secrets.docker_password}} -u ${{secrets.docker_username}}
|
run: docker login gitea.kleinsense.nl -p ${{secrets.docker_password}} -u ${{secrets.docker_username}}
|
||||||
- name: Docker push
|
- name: Docker push
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
# Use an official Golang runtime as a parent image
|
# Use an official Golang runtime as a parent image
|
||||||
FROM golang:latest as build
|
FROM golang:latest AS build
|
||||||
|
|
||||||
# Set the working directory to /app
|
# Set the working directory to /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user