Skip to content

ci: Changes

ci: Changes #3

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- main
name: Build and deploy to Docker Hub
jobs:
deploy:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: linux/amd64
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v2.2.1
- name: Docker Login
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v3.2.0
with:
platforms: |
linux/amd64
push: true
tags: c4stus/lights-api:${{ github.head_ref }}