Skip to content

Commit

Permalink
Change Github Action to run on release (CTFd#2028)
Browse files Browse the repository at this point in the history
* Change Docker image release script to run on release
  • Loading branch information
ColdHeat authored Nov 23, 2021
1 parent a9aa0ca commit 3cbe463
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
name: Docker build image on release

# on:
# release:
# types: [published]

on:
push:
branches:
- 'master'
release:
types: [published]

jobs:
docker:
Expand Down Expand Up @@ -35,18 +30,6 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
# -
# name: Build and push
# uses: docker/build-push-action@v2
# with:
# context: .
# platforms: linux/amd64
# push: true
# tags: |
# ctfd/ctfd:latest
# ghcr.io/ctfd/ctfd:latest
# ctfd/ctfd:${{ github.event.release.tag_name }}
# ghcr.io/ctfd/ctfd:${{ github.event.release.tag_name }}
-
name: Build and push
uses: docker/build-push-action@v2
Expand All @@ -55,5 +38,7 @@ jobs:
platforms: linux/amd64
push: true
tags: |
ctfd/ctfd:test-github-action
ghcr.io/ctfd/ctfd:test-github-action
ctfd/ctfd:latest
ghcr.io/ctfd/ctfd:latest
ctfd/ctfd:${{ github.event.release.tag_name }}
ghcr.io/ctfd/ctfd:${{ github.event.release.tag_name }}

0 comments on commit 3cbe463

Please sign in to comment.