TravBot-v3/.github/workflows/image.yml

26 lines
703 B
YAML
Raw Normal View History

2020-09-10 18:38:33 +00:00
name: Build Docker Image + Push
on:
push:
2020-10-15 09:23:24 +00:00
branches:
2020-09-10 19:03:44 +00:00
- typescript
- docker
2020-09-10 18:38:33 +00:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Docker BuildX
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
buildx-version: latest
2020-09-10 18:38:33 +00:00
- name: Login to Docker Hub
2020-09-10 19:03:44 +00:00
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
2020-09-10 18:38:33 +00:00
- name: Build the image
2020-09-10 19:03:44 +00:00
run: |
docker buildx build \
2020-09-10 18:38:33 +00:00
--tag keanucode/travbot-v3:latest \
2020-09-10 19:11:32 +00:00
--platform linux/amd64,linux/arm/v7,linux/arm64 --push .