Skip to content

Create and publish Debian build image #3

Create and publish Debian build image

Create and publish Debian build image #3

name: Create and publish Debian build image
on:
workflow_dispatch:
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to the container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v2
with:
images: ghcr.io/bailuk/java-gtk/gtk4-debian
- name: Build and push build image
uses: docker/build-push-action@v2
with:
context: ci/debian
push: true
tags: ghcr.io/bailuk/java-gtk/gtk4-debian:latest,${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}