mozhi/.gitea/workflows/push.yml

25 lines
625 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
uses: actions/checkout@v3
- name: Log in to Docker Hub
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 18:47:35 +05:30
uses: docker/build-push-action@v1
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
tags: latest