Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cursorweb committed Jan 13, 2024
2 parents 99a5dc4 + 811f2b8 commit 7f6a925
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/update-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 'Deploy to GHCR'

on:
push:
branches:
- master
workflow_dispatch:

jobs:
push-store-image:
runs-on: ARM64
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}


- name: Convert repository name to lowercase
id: repo
run: echo "::set-output name=repo::$(echo ${{ github.repository }} | awk '{print tolower($0)}')"

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/${{ steps.repo.outputs.repo }}:latest

0 comments on commit 7f6a925

Please sign in to comment.