Skip to content

Commit

Permalink
try to push to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Jan 12, 2024
1 parent 5b838e8 commit 3b63f84
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/fly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- main


env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy Docker

# TODO: change to release
on:
push:
branches:
- main

jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
push: true # Will only build if this is not here
# TODO: ghcr.io/${{ github.repository }}:${{ github.ref }}
tags: |
ghcr.io/${{ github.repository }}:latest

0 comments on commit 3b63f84

Please sign in to comment.