Update docker.yml

This commit is contained in:
Andrei Canta 2023-03-21 21:02:22 +02:00 committed by GitHub
parent b688731cb2
commit 9612509027
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ name: ci-docker
on:
push:
branches:
- 'main'
- "main"
workflow_dispatch:
@ -11,24 +11,23 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Github Container Registry
- name: Login to Github Container Registry
uses: docker/login-action@v2
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
registry: ghcr.io
-
name: Build and push
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .