Skip to content

Commit 6103b07

Browse files
committed
change actions to depend on workflow run
1 parent 61d06c2 commit 6103b07

File tree

4 files changed

+28
-31
lines changed

4 files changed

+28
-31
lines changed

.github/workflows/docker-release.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
branches: [master]
66
types:
77
- completed
8-
- requested
98
jobs:
109
goreleaser:
1110
runs-on: ubuntu-latest

.github/workflows/tag.yaml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,41 @@
1-
name: Bump Version
1+
name: Bump Git/Docker Version
22
on:
33
push:
44
branches:
55
- master
66
jobs:
7-
build:
7+
semver:
88
runs-on: ubuntu-latest
9+
outputs:
10+
tag: ${{ steps.tagging.outputs.new_tag }}
911
steps:
1012
- uses: actions/checkout@v2
1113
with:
1214
fetch-depth: '0'
1315
- name: Bump version and push tag
1416
uses: anothrNick/github-tag-action@1.26.0
17+
id: tagging
1518
env:
1619
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17-
WITH_V: true
20+
WITH_V: true
21+
docker:
22+
runs-on: ubuntu-latest
23+
needs: semver
24+
steps:
25+
- name: Set up QEMU
26+
uses: docker/setup-qemu-action@v1
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v1
29+
- name: Login to DockerHub
30+
uses: docker/login-action@v1
31+
with:
32+
username: ${{ github.repository_owner }}
33+
password: ${{ secrets.DOCKERHUB_TOKEN }}
34+
- name: Build and push
35+
id: docker_build
36+
uses: docker/build-push-action@v2
37+
with:
38+
push: true
39+
tags: ${{ github.repository }}:${{ needs.semver.outputs.tag }}
40+
- name: Image digest
41+
run: echo ${{ steps.docker_build.outputs.digest }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Fetch what's new from AWS and send out notifications on social sites.
44

55
<p align="center"><img src="https://i.imgur.com/HZLXzzz.jpg" width="700" /></p>
66

7-
![Build Status](https://github.com/circa10a/go-aws-news/workflows/release/badge.svg)
7+
![Build Status](https://github.com/circa10a/go-aws-news/workflows/GoReleaser/badge.svg)
88
[![PkgGoDev](https://pkg.go.dev/badge/github.com/circa10a/go-aws-news)](https://pkg.go.dev/github.com/circa10a/go-aws-news/news?tab=doc)
99
[![Go Report Card](https://goreportcard.com/badge/github.com/circa10a/go-aws-news)](https://goreportcard.com/report/github.com/circa10a/go-aws-news)
1010
![GitHub release (latest by date)](https://img.shields.io/github/v/release/circa10a/go-aws-news?style=plastic)

0 commit comments

Comments
 (0)