catbase/.github/workflows/docker.yml

42 lines
1.2 KiB
YAML
Raw Normal View History

2020-06-16 14:54:31 +00:00
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
2022-05-16 18:38:15 +00:00
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
2020-06-16 14:54:31 +00:00
# Runs a set of commands using the runners shell
2022-05-16 18:38:15 +00:00
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
2020-06-16 14:54:31 +00:00
- name: Build and push to Docker
2022-05-16 18:38:15 +00:00
uses: docker/build-push-action@v3
2020-06-16 14:54:31 +00:00
with:
2022-05-16 18:38:15 +00:00
context: .
push: true
2020-06-16 14:54:31 +00:00
tags: latest,catbase
2022-05-16 18:38:15 +00:00
platforms: linux/amd64,linux/arm64