2022-07-03 16:52:44 +03:00
|
|
|
name: build-and-push-test-image
|
2022-07-03 16:37:06 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-07-04 17:37:31 +03:00
|
|
|
- "test/*"
|
2022-07-03 16:37:06 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-push-dev-image:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-07-03 16:52:44 +03:00
|
|
|
- uses: actions/checkout@v3
|
2022-07-03 16:37:06 +03:00
|
|
|
|
|
|
|
- name: Set up QEMU
|
2022-07-03 16:52:44 +03:00
|
|
|
uses: docker/setup-qemu-action@v2
|
2022-07-03 16:37:06 +03:00
|
|
|
|
|
|
|
- name: Login to Docker Hub
|
2022-07-03 16:52:44 +03:00
|
|
|
uses: docker/login-action@v2
|
2022-07-03 16:37:06 +03:00
|
|
|
with:
|
|
|
|
username: neosmemo
|
|
|
|
password: ${{ secrets.DOCKER_NEOSMEMO_TOKEN }}
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
with:
|
|
|
|
install: true
|
|
|
|
|
|
|
|
- name: Build and Push
|
|
|
|
id: docker_build
|
|
|
|
uses: docker/build-push-action@v3
|
|
|
|
with:
|
|
|
|
context: ./
|
|
|
|
file: ./Dockerfile
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
push: true
|
2022-07-03 16:52:44 +03:00
|
|
|
tags: neosmemo/memos:test
|