2022-07-04 11:36:31 +02:00
|
|
|
name: Build Dev Docker
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- "renovate/**"
|
|
|
|
tags-ignore:
|
|
|
|
- "**"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-docker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: ⬇️ Checkout
|
2023-12-14 14:09:44 +01:00
|
|
|
uses: actions/checkout@v4
|
2022-07-04 11:36:31 +02:00
|
|
|
|
|
|
|
- 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@v3
|
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
context: .
|
|
|
|
tags: "ghcr.io/sebclem/claptrapbot-ui:${{ env.tag }}"
|
|
|
|
file: ./Dockerfile
|