actual-server/.github/workflows/build.yml

34 lines
749 B
YAML
Raw Normal View History

name: Build Docker Image
on:
push:
branches:
- master
jobs:
build:
name: Build Docker image
runs-on: ubuntu-latest
steps:
2022-04-30 15:54:53 +00:00
- 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
2022-05-01 21:52:27 +00:00
- name: Login to Github
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ secrets.DOCKERHUB_PROJECT }}:latest