mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 14:04:20 +01:00
Change Github Action to run on release (#2028)
* Change Docker image release script to run on release
This commit is contained in:
27
.github/workflows/docker-build.yml
vendored
27
.github/workflows/docker-build.yml
vendored
@@ -1,13 +1,8 @@
|
|||||||
name: Docker build image on release
|
name: Docker build image on release
|
||||||
|
|
||||||
# on:
|
|
||||||
# release:
|
|
||||||
# types: [published]
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
branches:
|
types: [published]
|
||||||
- 'master'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
@@ -35,18 +30,6 @@ jobs:
|
|||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
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
|
name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
@@ -55,5 +38,7 @@ jobs:
|
|||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
ctfd/ctfd:test-github-action
|
ctfd/ctfd:latest
|
||||||
ghcr.io/ctfd/ctfd:test-github-action
|
ghcr.io/ctfd/ctfd:latest
|
||||||
|
ctfd/ctfd:${{ github.event.release.tag_name }}
|
||||||
|
ghcr.io/ctfd/ctfd:${{ github.event.release.tag_name }}
|
||||||
|
|||||||
Reference in New Issue
Block a user