Initial commit carried over from private repo. This is V2.
This commit is contained in:
23
.gitea/workflows/docker-build-and-push.yml
Normal file
23
.gitea/workflows/docker-build-and-push.yml
Normal file
@ -0,0 +1,23 @@
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Docker login
|
||||
run: echo "${{ secrets.DOCKER_TOKEN }}" | docker login https://gitea.masita.net -u mc --password-stdin
|
||||
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
IMAGE=gitea.masita.net/mc/messengerapi:latest
|
||||
docker build -t $IMAGE .
|
||||
docker push $IMAGE
|
||||
Reference in New Issue
Block a user