Skip to content

Commit

Permalink
ci(docker): create docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0x61nas committed Feb 20, 2024
1 parent 526083c commit fb0a8c0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish to Docker
on:
push:
branches:
- main
permissions:
packages: write
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
image: ghcr.io/0x61nas/publish-packages/game
tags: type=sha
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.GITHUB_TOKEN }}
- name: Bulid container
uses: docker/bulid-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit fb0a8c0

Please sign in to comment.