mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2024-12-29 02:57:24 +02:00
also publish release on dockerhub
This commit is contained in:
parent
ca4394295a
commit
e5e40a0255
24
.github/workflows/create-release-workflow.yml
vendored
24
.github/workflows/create-release-workflow.yml
vendored
@ -35,3 +35,27 @@ jobs:
|
||||
asset_path: ./build/factorio-server-manager-linux.zip
|
||||
asset_name: factorio-server-manager-linux-${{ steps.tag_name.outputs.tag }}.zip
|
||||
asset_content_type: application/octet-stream
|
||||
docker-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
- uses: actions/setup-go@v2
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
- name: Get git tag
|
||||
id: tag_name
|
||||
uses: little-core-labs/get-git-tag@v3.0.2
|
||||
- name: Login to dockerhub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- run: make build; cp build/factorio-server-manager-linux.zip docker/factorio-server-manager-linux.zip
|
||||
- uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./docker/
|
||||
file: ./docker/Dockerfile-local
|
||||
push: true
|
||||
tags: ofsm/ofsm:develop,ofsm/ofsm:${{ steps.tag_name.outputs.tag }}
|
||||
# tags: ofsm/ofsm:latest,ofsm/ofsm:${{ steps.tag_name.outputs.tag }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user