Skip to content

feat: Add item entities (#331) #110

feat: Add item entities (#331)

feat: Add item entities (#331) #110

Workflow file for this run

name: Publish to Docker Hub
# Prevent two instances of this workflow running at the same time
concurrency: docker-publish
on:
push:
branches:
- main
permissions:
contents: read
jobs:
build:
name: Build and publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/#-action@v3
with:
username: ${{ vars.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: ./
push: true
tags: ${{ vars.DOCKER_HUB_USERNAME }}/cobolcraft:latest
cache-from: type=gha
cache-to: type=gha,mode=max
# See: https://docs.docker.com/build/ci/github-actions/update-dockerhub-desc/
- name: Update DockerHub description
uses: peter-evans/dockerhub-description@e98e4d1628a5f3be2be7c231e50981aee98723ae # v4.0.0
with:
username: ${{ vars.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
repository: ${{ vars.DOCKER_HUB_USERNAME }}/cobolcraft
short-description: ${{ github.event.repository.description }}
enable-url-completion: true