This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
Create docker-publish.yml #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI palworld-wine | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- name: Checkout Github Actions | |
uses: actions/checkout@main | |
- name: Login to GHCR | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GHCR_TOKEN}} | |
- name: Build the Docker image | |
run: | | |
docker build . --file Dockerfile --tag ghcr.io/ripps818/palworld-wine:latest | |
docker push ghcr.io/ripps818/palworld-wine:latest |