This repository has been archived on 2024-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
staxman-old/.forgejo/workflows/build-container.yaml

30 lines
785 B
YAML
Raw Normal View History

2024-03-30 17:56:46 +00:00
name: Build and push Docker image
on:
push:
branches:
2024-03-30 17:57:10 +00:00
- master
2024-03-30 17:56:46 +00:00
jobs:
build-and-publish:
2024-03-30 18:20:37 +00:00
runs-on: ubuntu-with-docker
2024-03-30 17:56:46 +00:00
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
2024-03-30 17:56:46 +00:00
uses: docker/login-action@v2
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ secrets.DOCKER_REGISTRY }}/Hamcha/staxman:latest