Skip to content

Commit

Permalink
Docker build and push to Docker Hub in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Keksoj committed Dec 9, 2022
1 parent 319119a commit b198efb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,30 @@ jobs:
with:
command: tarpaulin
args: --coveralls $TOKEN --avoid-cfg-tarpaulin # @TODO restore to normal (https://github.com/xd009642/tarpaulin/issues/756#issuecomment-838769320)

dockerhub:
name: Docker build and push to Docker Hub
runs-on: ubuntu-latest

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

- name: Setup Qemu action
uses: docker/setup-qemu-action@v1

- name: Setup build action
uses: docker/setup-buildx-action@v1

- name: Login action
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
context: .
push: 'true'
tags: clevercloud/sozu:${{ github.sha }}
2 changes: 1 addition & 1 deletion os-build/docker/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# path to a file sozu can use to load an initial configuration state for its
# routing. You can generate this file from sozu's current routing by running
# the command `sozuctl state save -f state.json`
saved_state = "/var/lib/sozu/state.json"
# saved_state = "/var/lib/sozu/state.json"

# logging verbosity. Possible values are "error", "warn", "info", "debug" and
# "trace". For performance reasons, the logs at "debug" or "trace" level are
Expand Down

0 comments on commit b198efb

Please sign in to comment.