Skip to content

Add asdf image

Add asdf image #2

Workflow file for this run

name: Build Image
on:
push:
branches:
- main
pull_request:
permissions:
packages: write
jobs:
build-base:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
image:
- 'asdf.Dockerfile'
- run: >-
docker build
-t ghcr.io/${{ github.repository }}/asdf:${{ github.run_number }}.${{ github.run_attempt }}
-f asdf.Dockerfile
.
if: steps.filter.outputs.image == 'true'
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login -u $ --password-stdin ghcr.io
name: Login to registry
if: ${{ github.event_name == 'push' && steps.filter.outputs.image == 'true' }}
- run: docker push ghcr.io/${{ github.repository }}/asdf:${{ github.run_number }}.${{ github.run_attempt }}
if: ${{ github.event_name == 'push' && steps.filter.outputs.image == 'true' }}