fix CI 2
This commit is contained in:
parent
886d0fe36a
commit
9f5f33f852
1 changed files with 13 additions and 14 deletions
|
@ -1,25 +1,24 @@
|
|||
name: mozhi-pipeline
|
||||
name: mozhi pipeline
|
||||
on: push
|
||||
jobs:
|
||||
deploy:
|
||||
push_to_registry:
|
||||
runs-on: ubuntu-latest
|
||||
name: Push Docker image to Codeberg docker registry
|
||||
steps:
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: aryak
|
||||
password: ${{ secrets.MOZHI_DOCKER_PASSWORD }}
|
||||
registry: codeberg.org
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@master
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: latest
|
||||
|
|
Loading…
Reference in a new issue