Skip to content

Merge pull request #17 from matzegebbe/dependabot/github_actions/dock… #31

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

Merge pull request #17 from matzegebbe/dependabot/github_actions/dock… #31

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@v4
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}-${{ github.run_id }}