Skip to content

Merge pull request #9 from tensorpix/feature/psmisc-packet #6

Merge pull request #9 from tensorpix/feature/psmisc-packet

Merge pull request #9 from tensorpix/feature/psmisc-packet #6

Workflow file for this run

name: Create and push docker images to this repo's packages
on:
push:
branches:
- master
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-staging-image:
timeout-minutes: 30
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract staging image metadata
id: staging
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: latest
- name: Build and push staging image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
tags: ${{ steps.staging.outputs.tags }}
labels: ${{ steps.staging.outputs.labels }}