Skip to content

Commit

Permalink
cd: push to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdickinson committed Jul 6, 2024
1 parent 2f82ee0 commit f1e2763
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,26 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: build docker service images
id: build

- uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}


- id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: |
ghcr.io/${{ github.repository }}
- id: build
uses: docker/build-push-action@v5
with:
push: true
load: true
tags: latest
cache-from: type=gha,scope=discordbot
cache-to: type=gha,mode=max,scope=discordbot

tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit f1e2763

Please sign in to comment.