Skip to content

Commit

Permalink
Merge pull request #13 from sourcebots/feature/built-on-tag
Browse files Browse the repository at this point in the history
Build on tags rather than releases
  • Loading branch information
RealOrangeOne authored Aug 7, 2023
2 parents e0e23ff + c190844 commit 0b93058
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Image build

on:
release:
types: [created]
push:
branches:
- master
tags:
pull_request:
workflow_dispatch:

jobs:
build:
permissions:
id-token: write
name: Build image
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -43,13 +40,3 @@ jobs:
with:
name: image-${{ env.git_desc }}
path: ${{ env.image_path }}

- name: Upload image to release
uses: svenstaro/upload-release-action@v2
if: github.event_name == 'release'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.image_path }}
asset_name: ${{ env.image_name }}
tag: ${{ github.ref }}
overwrite: true

0 comments on commit 0b93058

Please sign in to comment.