Skip to content

Commit

Permalink
Merge pull request #170 from mountaindude/master
Browse files Browse the repository at this point in the history
5.4.2 RC
  • Loading branch information
mountaindude authored Jun 10, 2021
2 parents 44a6057 + 14b0b16 commit 6a5d0bb
Show file tree
Hide file tree
Showing 9 changed files with 142 additions and 46 deletions.
56 changes: 28 additions & 28 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
kind: pipeline
type: docker
name: linux-amd64

platform:
arch: amd64
os: linux

steps:
- name: docker
image: plugins/docker
settings:
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
repo: ptarmiganlabs/butler
dockerfile: src/Dockerfile.amd64
context: src
auto_tag: true
auto_tag_suffix: linux-amd64
when:
event:
- push
- tag
# kind: pipeline
# type: docker
# name: linux-amd64

# platform:
# arch: amd64
# os: linux

# steps:
# - name: docker
# image: plugins/docker
# settings:
# username:
# from_secret: dockerhub_username
# password:
# from_secret: dockerhub_password
# repo: ptarmiganlabs/butler
# dockerfile: src/Dockerfile.amd64
# context: src
# auto_tag: true
# auto_tag_suffix: linux-amd64
# when:
# event:
# - push
# - tag

---
kind: pipeline
Expand Down Expand Up @@ -52,8 +52,8 @@ trigger:
- push
- tag

depends_on:
- linux-amd64
# depends_on:
# - linux-amd64


---
Expand Down Expand Up @@ -85,7 +85,7 @@ trigger:
- tag

depends_on:
- linux-amd64
- linux-arm64


---
Expand Down
91 changes: 91 additions & 0 deletions .github/workflows/docker-image-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

# Inspiration
# https://github.com/actions/starter-workflows/blob/main/ci/docker-publish.yml

name: Build Docker image CI

on:
push:
branches: [ master ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
# push:
# branches: [ master ]
# # Publish semver tags as releases.
# tags: [ 'v*.*.*' ]

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

strategy:
matrix:
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

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

# Login against a Docker registry except on PR
# https://github.com/marketplace/actions/docker-login
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context
- name: Login to Docker Hub
uses: docker/login-action@v1
if: |
github.event_name != 'pull_request'
# if: |
# github.event_name != 'pull_request' ||
# github.repository_owner == 'ptarmiganlabs'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

# Extract metadata (tags, labels) for Docker
# https://github.com/marketplace/actions/docker-metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
# images: ${{ env.IMAGE_NAME }}
images: ${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Show Docker tags that will be used
run: echo '${{ steps.meta.outputs.tags }}'

- name: Show Docker labels that will be used
run: echo '${{ steps.meta.outputs.labels }}'

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./src
platforms: |
linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

env:
CI: true
10 changes: 10 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Change log

## 5.4.2

### New features

### Fixes and patches

* Switched to using GitHub actions for building linux/amd64 Docker images.

### Changed behavior and/or breaking changes

## 5.4.1

### New features
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: '3.3'
services:
butler:
image: ptarmiganlabs/butler:5.4.1
image: ptarmiganlabs/butler:5.4.2
container_name: butler
restart: always
ports:
Expand Down
5 changes: 0 additions & 5 deletions src/docker/manifest.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ tags:
{{/each}}
{{/if}}
manifests:
-
image: ptarmiganlabs/butler:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
platform:
architecture: amd64
os: linux
-
image: ptarmiganlabs/butler:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
platform:
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "butler",
"version": "5.4.1",
"version": "5.4.2",
"description": "Superpowers for Qlik Sense. Task scheduling, key-value store, advanced alerting and more.",
"dependencies": {
"any-base": "^1.1.0",
Expand Down
6 changes: 3 additions & 3 deletions src/udp_client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions src/udp_client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
},
"license": "MIT",
"dependencies": {
"yargs": "^17.0.0"
"yargs": "^17.0.1"
},
"homepage": "https://github.com/ptarmiganlabs/butler",
"author": "Göran Sander",
"repository": {
"type": "git",
"url": "git+https://github.com/ptarmiganlabs/butler.git"
"type": "git",
"url": "git+https://github.com/ptarmiganlabs/butler.git"
},
"keywords": [
"butler",
"senseops",
"devops",
"qliksense"
"butler",
"senseops",
"devops",
"qliksense"
],
"bugs": {
"url": "https://github.com/ptarmiganlabs/butler/issues"
"url": "https://github.com/ptarmiganlabs/butler/issues"
}
}

0 comments on commit 6a5d0bb

Please sign in to comment.