Skip to content

Commit

Permalink
ci: refactored actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
TyIsI committed Jun 25, 2024
1 parent 17045b4 commit f188b50
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 33 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/docker-build-only.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,35 @@ name: Docker Image CI

on:
push:
branches: ["main", "master", "trunk"]
tags: ["v*"]
branches:
- 'main'
- 'master'
- 'trunk'
tags:
- 'v*'
pull_request:
branches:
- 'main'
- 'master'
- 'trunk'
workflow_dispatch:

jobs:
build-push:
if: ${{ github.event_name != 'pull_request' }}

docker:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Docker metadata
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ vars.DOCKERHUB_TEMPLATE }}

- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down

0 comments on commit f188b50

Please sign in to comment.