gotty/.github/workflows/pre-release.yaml

37 lines
738 B
YAML
Raw Normal View History

2021-06-03 20:29:57 +00:00
---
name: "pre-release"
on:
push:
branches:
- "master"
jobs:
2022-11-11 22:39:48 +00:00
pre-release-docker:
name: "Pre Release Docker"
2021-06-03 20:29:57 +00:00
runs-on: "ubuntu-latest"
2022-11-11 22:51:03 +00:00
2021-06-03 20:29:57 +00:00
steps:
2022-11-11 22:51:03 +00:00
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
username: "${{ secrets.DOCKER_HUB_USER }}"
password: "${{ secrets.DOCKER_HUB_TOKEN }}"
- name: "Build and push docker image"
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
2022-11-11 22:39:48 +00:00
tags: "${{ secrets.DOCKER_REPO }}:latest"