Skip to content

Bump to 1.2.0 to avoid confusion with previous packages #18

Bump to 1.2.0 to avoid confusion with previous packages

Bump to 1.2.0 to avoid confusion with previous packages #18

Workflow file for this run

name: Build dev image
on:
push:
branches-ignore:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
docker-image-build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Extract commit SHA
run:
echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v4
- name: Docker Login
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
run: |
docker build --pull --build-arg COM_SHA=${{ env.SHORT_SHA }} -t ${{ env.REGISTRY }}/${{ github.repository }}:dev .
docker push ${{ env.REGISTRY }}/${{ github.repository }}:dev