Skip to content

Commit

Permalink
Merge workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hibare committed Sep 30, 2023
1 parent 0361d47 commit 22e488b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 163 deletions.
74 changes: 0 additions & 74 deletions .github/workflows/docker-image-publish-release.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,20 +1,38 @@
name: Nigtly Release
name: Test, Dev Build & Release Publish

# When its time to do a release do a full cross platform build for all supported
# architectures and push all of them to Docker Hub and GitHub Container Registry.
# Only trigger on semver shaped tags.
on:
schedule:
- cron: "0 0 * * *"
push:
tags:
- "*"
branches:
- dev
- main

pull_request:
branches:
- "main"
paths-ignore:
- "**/README.md"
- "**/.github"

jobs:
docker-image-publish-nightly:
docker-image-test-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: dev

- name: Set Docker Tags
id: set-docker-tags
run: |
if [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref }}" == "refs/heads/dev" ]; then
DOCKER_TAGS="dev"
else
DOCKER_TAGS="type=semver,pattern={{version}} type=semver,pattern={{major}}"
fi
echo "::set-output name=docker_tags::$DOCKER_TAGS"
shell: bash

- name: Docker meta
id: meta
Expand All @@ -25,8 +43,7 @@ jobs:
hibare/go-yts
ghcr.io/hibare/go-yts
# generate Docker tags based on the following events/attributes
tags: |
nightly
tags: ${{ steps.set-docker-tags.outputs.docker_tags }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -53,6 +70,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand Down
78 changes: 0 additions & 78 deletions .github/workflows/docker-image-test.yml

This file was deleted.

0 comments on commit 22e488b

Please sign in to comment.