Skip to content

Commit f111622

Browse files
committed
chore: docker build
1 parent e288c48 commit f111622

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,31 @@ jobs:
3939
bin/druid_rcon_web_rust
4040
.docker/entrypoint.sh
4141
.docker/druid-install-command.sh
42+
docker:
43+
runs-on: ubuntu-latest
44+
needs: build
45+
steps:
46+
- uses: actions/checkout@v4
47+
with:
48+
fetch-depth: 0
49+
- name: Login to Docker Hub
50+
uses: docker/login-action@v3
51+
with:
52+
username: ${{ vars.DOCKERHUB_USERNAME }}
53+
password: ${{ secrets.DOCKERHUB_TOKEN }}
54+
#stable is still pretty bleeding edge at this point
55+
- name: Build and push Docker image
56+
uses: docker/build-push-action@v4
57+
with:
58+
context: .docker
59+
file: .docker/Dockerfile
60+
tags: |
61+
druid:${{ steps.version.outputs.version }}
62+
druid:latest
63+
druid:stable
64+
druid:${{ steps.version.outputs.version_tag }}
65+
push: true
66+
build-args: |
67+
VERSION=${{ steps.version.outputs.version }}
68+
GIT_COMMIT=${{ github.sha }}
69+
GIT_BRANCH=${{ github.ref_name }}

0 commit comments

Comments
 (0)