mirror of
https://github.com/zedeus/nitter.git
synced 2024-06-10 09:09:21 +00:00
36 lines
872 B
YAML
36 lines
872 B
YAML
name: Docker
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- "README.md"
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-docker-amd64:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
with:
|
|
version: latest
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ github.token }}
|
|
- name: Build and push AMD64 Docker image
|
|
uses: docker/build-push-action@v3
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile
|
|
platforms: linux/amd64
|
|
push: true
|
|
tags: ${{ github.repository }}:latest,${{ github.repository }}:${{ github.sha }}
|