2021-01-22 20:56:53 +00:00
|
|
|
name: CI/CD
|
2021-01-22 20:31:10 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
2021-01-22 20:56:53 +00:00
|
|
|
- "README.md"
|
2021-01-22 20:31:10 +00:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
2023-03-28 14:03:15 +00:00
|
|
|
build-docker-amd64:
|
|
|
|
runs-on: buildjet-2vcpu-ubuntu-2204
|
2021-01-22 20:31:10 +00:00
|
|
|
steps:
|
2023-03-28 14:03:15 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-01-22 20:31:10 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
2023-03-28 14:03:15 +00:00
|
|
|
uses: docker/setup-buildx-action@v2
|
2021-01-22 20:31:10 +00:00
|
|
|
with:
|
|
|
|
version: latest
|
|
|
|
- name: Login to DockerHub
|
2023-03-28 14:03:15 +00:00
|
|
|
uses: docker/login-action@v2
|
2021-01-22 20:31:10 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2023-02-26 14:06:52 +00:00
|
|
|
- name: Build and push AMD64 Docker image
|
2023-03-28 14:03:15 +00:00
|
|
|
uses: docker/build-push-action@v3
|
2021-01-22 20:31:10 +00:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
2022-01-16 17:53:30 +00:00
|
|
|
platforms: linux/amd64
|
2021-01-22 20:31:10 +00:00
|
|
|
push: true
|
|
|
|
tags: zedeus/nitter:latest,zedeus/nitter:${{ github.sha }}
|
2023-03-28 14:03:15 +00:00
|
|
|
build-docker-arm64:
|
|
|
|
runs-on: buildjet-2vcpu-ubuntu-2204-arm
|
|
|
|
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:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2023-02-26 14:06:52 +00:00
|
|
|
- name: Build and push ARM64 Docker image
|
2023-03-28 14:03:15 +00:00
|
|
|
uses: docker/build-push-action@v3
|
2023-02-26 14:06:52 +00:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./Dockerfile.arm64
|
|
|
|
platforms: linux/arm64
|
|
|
|
push: true
|
|
|
|
tags: zedeus/nitter:latest-arm64,zedeus/nitter:${{ github.sha }}-arm64
|