2023-08-30 13:13:57 +00:00
|
|
|
name: mozhi pipeline
|
2023-08-30 12:54:08 +00:00
|
|
|
on: push
|
|
|
|
jobs:
|
2023-08-30 13:13:57 +00:00
|
|
|
push_to_registry:
|
2023-08-30 12:54:08 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-08-30 13:13:57 +00:00
|
|
|
name: Push Docker image to Codeberg docker registry
|
2023-08-30 12:54:08 +00:00
|
|
|
steps:
|
2023-08-30 13:22:16 +00:00
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
2023-08-30 13:13:57 +00:00
|
|
|
- name: Check out the repo
|
2023-08-30 13:22:16 +00:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Log in to registry
|
2023-08-30 13:18:32 +00:00
|
|
|
uses: docker/login-action@v1
|
2023-08-30 12:54:08 +00:00
|
|
|
with:
|
|
|
|
username: aryak
|
|
|
|
password: ${{ secrets.MOZHI_DOCKER_PASSWORD }}
|
2023-08-30 12:55:27 +00:00
|
|
|
registry: codeberg.org
|
2023-08-30 13:13:57 +00:00
|
|
|
|
|
|
|
- name: Build and push Docker image
|
2023-08-30 13:22:16 +00:00
|
|
|
uses: docker/build-push-action@v2
|
2023-08-30 12:54:08 +00:00
|
|
|
with:
|
2023-08-30 13:13:57 +00:00
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
2023-08-30 12:54:08 +00:00
|
|
|
push: true
|
|
|
|
tags: latest
|