Skip to content

Create test.yml

Create test.yml #1

Workflow file for this run

name: publish
on: [push]
jobs:
publish-hello-docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: secful/dashboard
tags: |
type=ref,event=branch
type=sha,format=short,prefix=
-
name: Build and push base18
uses: docker/build-push-action@v5
with:
push: false
file: images/base-18.dockerfile
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}