Skip to content

Commit

Permalink
change to publish to github
Browse files Browse the repository at this point in the history
  • Loading branch information
phyzical committed Jul 27, 2024
1 parent 34ceaeb commit e50395b
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
name: Docker Image CI

name: build and publish
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

branches: [master]
workflow_dispatch:
permissions:
content: read
packages: write
jobs:

build:

docker:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag cs2-modded-server:$(date +%s)
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/${{ github.repository }}:latest
platforms: linux/amd64,linux/arm64

0 comments on commit e50395b

Please sign in to comment.