Skip to content

Commit

Permalink
Merge pull request #210 from dbarzin/dev
Browse files Browse the repository at this point in the history
add docker
  • Loading branch information
dbarzin authored Nov 2, 2024
2 parents a308fe7 + 9bf2805 commit 6fec6eb
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: docker

on:
push:
branches:
- "master"

jobs:
docker:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Test naming
run: echo "ghcr.io/${{ github.repository }}:latest"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

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

- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64, linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository }}:latest

0 comments on commit 6fec6eb

Please sign in to comment.