Skip to content

Commit

Permalink
Merge pull request #17 from warpdotgreen/test-docker-build
Browse files Browse the repository at this point in the history
Docker Container Auto-Build
  • Loading branch information
Yakuhito authored May 9, 2024
2 parents 43a2c10 + 7527ca2 commit 5f9f6dc
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Run Build

on:
push:
branches:
- main
release:
types: [created]

jobs:
publish_containers:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Login to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/cli
tags: |
type=ref,event=branch
type=ref,event=pr
type=match,pattern=v(.*),group=1
- name: Push to GHCR
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,6 @@ data.db-journal
messages.txt
qr.png
last_spent_portal_coinid

# intellij
.idea

0 comments on commit 5f9f6dc

Please sign in to comment.