Skip to content

Commit

Permalink
Added GitHub workflow to deploy Docker Images into GitHub Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomelo9 committed Feb 4, 2024
1 parent 304e077 commit 551757a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy Docker Images

on: [push]

jobs:
synthesis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: docker build -f recipes/synthesis -t ghcr.io/pyfpga/synthesis .
- name: Push Docker image
run: docker push ghcr.io/pyfpga/synthesis
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
set -e
IMAGE=$1
docker build -f recipes/$IMAGE -t pyfpga/$IMAGE .
docker build -f recipes/$IMAGE -t ghcr.io/pyfpga/$IMAGE .

0 comments on commit 551757a

Please sign in to comment.