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:13:57 +00:00
|
|
|
- name: Check out the repo
|
2023-08-30 13:55:32 +00:00
|
|
|
uses: actions/checkout@v3
|
2023-08-30 13:22:16 +00:00
|
|
|
|
2023-08-30 13:59:30 +00:00
|
|
|
- name: Install docker
|
|
|
|
uses: papodaca/install-docker-action@main
|
|
|
|
|
2023-08-30 13:22:16 +00:00
|
|
|
- name: Log in to registry
|
2023-08-30 13:55:32 +00:00
|
|
|
uses: docker/login-action@v2
|
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:55:32 +00:00
|
|
|
uses: docker/build-push-action@v4
|
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
|
2023-08-30 13:55:32 +00:00
|
|
|
tags: codeberg.org/aryak/mozhi:latest
|