Skip to content

Commit

Permalink
manual docker build (#99)
Browse files Browse the repository at this point in the history
* Build docker manually

* TEST docker build

* Revert "TEST docker build"

This reverts commit 2769dd1.

* Fix tag command

* Use checkout v2

* Bump version
  • Loading branch information
raviqqe authored Sep 22, 2020
1 parent f7fc338 commit e26259e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: elgohr/Publish-Docker-Github-Action@master
- uses: actions/checkout@v2
with:
name: raviqqe/muffet
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag_semver: true
fetch-depth: 0
- run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- run: tools/docker.sh
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
container:
image: golang
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: tools/release.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
container:
image: golang
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- run: tools/build.sh
- run: tools/lint.sh
- run: tools/test.sh
Expand Down
2 changes: 1 addition & 1 deletion configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import "time"

const (
version = "1.5.2"
version = "1.5.3"
defaultBufferSize = 4096
defaultConcurrency = 512
defaultMaxRedirections = 64
Expand Down
8 changes: 8 additions & 0 deletions tools/docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

set -e

for tag in latest $(git tag --points-at); do
docker build -t raviqqe/muffet:$tag .
docker push raviqqe/muffet:$tag
done

0 comments on commit e26259e

Please sign in to comment.