void.cat/.github/workflows/build.yml

25 lines
731 B
YAML
Raw Normal View History

2022-01-25 16:17:48 +00:00
name: build
on:
push:
2022-07-25 18:21:20 +00:00
branches: [ v4-re ]
2022-01-25 16:17:48 +00:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2023-01-26 13:49:38 +00:00
with:
fetch-depth: 0
2022-01-25 16:17:48 +00:00
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
2022-03-10 12:49:11 +00:00
- uses: docker/login-action@v1
with:
username: voidic
password: ${{ secrets.DOCKER_HUB_TOKEN }}
2022-01-25 16:17:48 +00:00
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- name: Build the Docker image
2022-03-10 12:49:11 +00:00
run: docker buildx build -t ghcr.io/v0l/void.cat/app:latest -t voidic/void.cat:latest --platform linux/amd64 --push .