Skip to content

Commit

Permalink
Merge pull request #71 from reload/push-to-ghcr
Browse files Browse the repository at this point in the history
Push image to GHCR
  • Loading branch information
xendk authored Jan 13, 2022
2 parents 4f24d4f + c37dcbd commit c30422f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Build and push to GHCR"
on:
push:
branches: [main]

jobs:
build:
name: Docker build and push
if: >
${{ !github.event.deleted }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/[email protected]
with:
builder: ${{ steps.buildx.outputs.name }}
tags: |
ghcr.io/reload/harvester:latest
push: true

0 comments on commit c30422f

Please sign in to comment.