Skip to content

Commit

Permalink
Add .github folder for autopush
Browse files Browse the repository at this point in the history
  • Loading branch information
Doridian committed Mar 29, 2024
1 parent 8804827 commit b121ebb
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish Docker image
on:
push:
branches:
- main
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container image
uses: docker/build-push-action@v5
with:
push: true
build-args: |
GIT_REVISION=${{ github.sha }}
tags: |
ghcr.io/spaceagemp/starlord/starlord:latest

0 comments on commit b121ebb

Please sign in to comment.