Claptrap-ui/.github/workflows/docker_dev.yml
2023-12-14 13:09:47 +00:00

42 lines
995 B
YAML

name: Build Dev Docker
on:
push:
branches-ignore:
- "renovate/**"
tags-ignore:
- "**"
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v3
- name: 🛠️ Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: 🔒 Login to ghcr.io
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: 🛠️ Get branch name
id: branch-name
uses: tj-actions/branch-names@v5.4
- name: 🛠️ Set tag
run: |
echo "tag=${{ steps.branch-name.outputs.current_branch }}" >> $GITHUB_ENV
- name: 🔨 Build and push Docker
uses: docker/build-push-action@v5
with:
push: true
context: .
tags: "ghcr.io/sebclem/claptrapbot-ui:${{ env.tag }}"
file: ./Dockerfile