Skip to content

Merge pull request #18 from matzegebbe/dependabot/github_actions/dock… #32

Merge pull request #18 from matzegebbe/dependabot/github_actions/dock…

Merge pull request #18 from matzegebbe/dependabot/github_actions/dock… #32

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Docker Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}-${{ github.run_id }}