Add workflow
Some checks failed
Build and push container / Build-Docker-Container (push) Failing after 42s
Some checks failed
Build and push container / Build-Docker-Container (push) Failing after 42s
This commit is contained in:
parent
0aa37fd12d
commit
28d9c7434b
35
.gitea/workflows/build.yml
Normal file
35
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,35 @@
|
||||
name: Build and push container
|
||||
run-name: ${{ gitea.actor }} is building the container
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Build-Docker-Container:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: hub.docker.com
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: mrletsplay/mdblog
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: docker/Dockerfile
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
Loading…
Reference in New Issue
Block a user