name: Build and push Docker image
on:
push:
branches:
- master
jobs:
build-and-publish:
runs-on: docker
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver: docker
driver-opts: |
network=web
- name: Auth with uchu registry
uses: docker/login-action@v2
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
context: .
push: true
tags: ${{ secrets.DOCKER_REGISTRY }}/Hamcha/staxman:latest