Skip to content

Commit

Permalink
Create publish-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nickv2002 committed Feb 26, 2024
1 parent fff0676 commit dab3196
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Docker Image CI

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Build and push Docker image
run: |
docker build -t ghcr.io/${{ github.repository }}/dominiontabs:${{ github.sha }} .
docker push ghcr.io/${{ github.repository }}/dominiontabs:${{ github.sha }}

0 comments on commit dab3196

Please sign in to comment.