Skip to content

Commit

Permalink
Merge pull request #1166 from sozu-proxy/devel/fdubois/ci/docker
Browse files Browse the repository at this point in the history
ci(docker): build and push on every commits
  • Loading branch information
FlorentinDUBOIS authored Dec 26, 2024
2 parents a62e2f1 + a77c928 commit f2c4d65
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install rust (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
with:
Expand All @@ -43,7 +43,7 @@ jobs:
- name: install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -62,7 +62,7 @@ jobs:
- name: install protoc
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -84,16 +84,15 @@ jobs:
dockerhub:
name: Docker build and push to Docker Hub
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v2
- uses: docker/build-push-action@v6
with:
context: .
push: 'true'
Expand Down

0 comments on commit f2c4d65

Please sign in to comment.