Skip to content

Commit

Permalink
Merge branch 'main' of github.com:WeeJeWel/node-google-backup
Browse files Browse the repository at this point in the history
  • Loading branch information
WeeJeWel committed Jul 31, 2024
2 parents d20a2fb + baa8517 commit 37ffa83
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ghcr-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build & Publish Docker Image

on:
workflow_dispatch:
release:
types: [created]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1

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

- name: Set environment variables
run: echo RELEASE=$(cat ./package.json | jq -r .release) >> $GITHUB_ENV

- name: Build & Publish Docker Image
uses: docker/build-push-action@v5
with:
push: true
platforms: linux/amd64,linux/arm64/v8
tags: ghcr.io/weejewel/google-backup:latest, ghcr.io/weejewel/google-backup:${{ env.RELEASE }}

0 comments on commit 37ffa83

Please sign in to comment.