mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
35 lines
984 B
YAML
35 lines
984 B
YAML
name: Build and push image
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Install Docker
|
|
run: curl -fsSL https://get.docker.com | sh
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: install pip
|
|
run: apt update && apt install -y python3-pip
|
|
- uses: abatilo/actions-poetry@v2
|
|
with:
|
|
poetry-version: "1.6.1"
|
|
- uses: actions/setup-node@v3
|
|
- uses: actions/checkout@v3
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: ajurna/cbwebreader:${{poetry version -s}} ajurna/cbwebreader:latest
|