Skip to content

Create build.yaml

Create build.yaml #1

Workflow file for this run

name: deploy
on:
push:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Check out repository code
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
# Docs: https://github.com/marketplace/actions/build-and-push-docker-images#usage
push: true
tags: |
ghcr.io/parrotmac/gary:${{ github.sha }}
ghcr.io/parrotmac/gary:latest