Skip to content

Commit

Permalink
add ghcr.io registry
Browse files Browse the repository at this point in the history
  • Loading branch information
puckpuck committed Oct 13, 2023
1 parent 9d2f636 commit d236725
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/docker-publish.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Publish

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

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

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

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/puckpuck/seashell:${{ github.event.release.tag_name }}
puckpuck/seashell:${{ github.event.release.tag_name }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/

0 comments on commit d236725

Please sign in to comment.