Skip to content

chore(deps): update all non-major dependencies #1435

chore(deps): update all non-major dependencies

chore(deps): update all non-major dependencies #1435

Workflow file for this run

name: Branch Imager
on:
push:
branches-ignore:
- main
jobs:
Publish:
name: Publish image to container registries
runs-on: ubuntu-latest
if: ${{ ! contains(github.event.head_commit.message, '[skip docker]') }}
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3.7.1
- name: Login to DockerHub
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get GitHub Branch Name
id: get_branch_name
run: echo "branch_name=$(echo $( [ -z "${{ github.head_ref }}" ] && echo ${{ github.ref }} | cut -c12- || echo ${{ github.head_ref }} ) | sed -e 's/\/\|_/-/g' | sed -e 's/@//g')" >> $GITHUB_OUTPUT
- name: Build and push Docker image
uses: docker/build-push-action@v6.10.0
with:
push: true
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: |
linux/amd64
linux/arm64
tags: |
favware/graphql-pokemon:${{ steps.get_branch_name.outputs.branch_name }}
ghcr.io/favware/graphql-pokemon:${{ steps.get_branch_name.outputs.branch_name }}