mozhi/.gitea/workflows/push.yml

25 lines
642 B
YAML
Raw Normal View History

2023-08-30 18:43:57 +05:30
name: mozhi pipeline
2023-08-30 18:24:08 +05:30
on: push
jobs:
2023-08-30 18:43:57 +05:30
push_to_registry:
2023-08-30 18:24:08 +05:30
runs-on: ubuntu-latest
2023-08-30 18:43:57 +05:30
name: Push Docker image to Codeberg docker registry
2023-08-30 18:24:08 +05:30
steps:
2023-08-30 18:43:57 +05:30
- name: Check out the repo
2023-08-30 19:25:32 +05:30
uses: actions/checkout@v3
2023-08-30 18:52:16 +05:30
- name: Log in to registry
2023-08-30 19:25:32 +05:30
uses: docker/login-action@v2
2023-08-30 18:24:08 +05:30
with:
username: aryak
password: ${{ secrets.MOZHI_DOCKER_PASSWORD }}
2023-08-30 18:25:27 +05:30
registry: codeberg.org
2023-08-30 18:43:57 +05:30
- name: Build and push Docker image
2023-08-30 19:25:32 +05:30
uses: docker/build-push-action@v4
2023-08-30 18:24:08 +05:30
with:
2023-08-30 18:43:57 +05:30
context: .
file: ./Dockerfile
2023-08-30 18:24:08 +05:30
push: true
2023-08-30 19:25:32 +05:30
tags: codeberg.org/aryak/mozhi:latest