Skip to content

Commit

Permalink
add building and pushing of docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
frealv committed Apr 18, 2024
1 parent f28a48c commit c4a0072
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
on:
push

jobs:
build:
permissions:
packages: write
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
push: false
push: true
tags: ghcr.io/${{ github.repository }}:latest

0 comments on commit c4a0072

Please sign in to comment.