Skip to content

Commit

Permalink
ci: unify release and build in same workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
treipatru committed Jul 11, 2024
1 parent 86ad71b commit d010ed4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 32 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/build-image.yml

This file was deleted.

28 changes: 25 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,42 @@
name: Releases
name: Release

on:
push:
tags:
- 'v*'

jobs:

build:
create_release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3

- uses: ncipollo/release-action@v1
with:
draft: false
prerelease: false
generateReleaseNotes: true

build_images:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: treipatru/movies-today-bot:latest
2 changes: 1 addition & 1 deletion .github/workflows/sanity-check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: sanity-check
name: Sanity check

on:
push:
Expand Down

0 comments on commit d010ed4

Please sign in to comment.