Skip to content

Commit

Permalink
Merge pull request #2 from EvoTM/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ItsPhenom authored Jul 9, 2021
2 parents 0a0b101 + 995ca04 commit 3e94280
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 14 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Docker Publish
on:
release:
types: [published]

jobs:
push:
runs-on: ubuntu-latest
if: github.event_name == 'release'
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Prepare
id: prep
run: |
DOCKER_IMAGE=evotm/evosc
VERSION=${GITHUB_REF#refs/tags/}
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:latest"
echo ::set-output name=version::${VERSION}
echo ::set-output name=tags::${TAGS}
echo ::set-output name=builddate::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
echo ::set-output name=revision::$(git rev-parse --short HEAD)
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.prep.outputs.tags }}
build-args: |
BUILD_DATE=${{ steps.prep.outputs.builddate }}
REVISION=${{ steps.prep.outputs.revision }}
14 changes: 0 additions & 14 deletions hooks/build

This file was deleted.

0 comments on commit 3e94280

Please sign in to comment.