deno-deploy/.github/workflows/build.yaml
Sam Therapy c8aa478c88
Some checks failed
ci / docker (push) Failing after 7s
Attempt to create a GitHub Action
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2024-03-27 20:41:36 +01:00

37 lines
930 B
YAML

name: ci
on:
push:
branches:
- master
env:
REGISTRY: ${{ gitea.actor != '' && 'git.froth.zone' || 'ghcr.io' }}
IMAGE_NAME: ${{ github.repository }}
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest