Skip to content

Commit

Permalink
Fixing docker-deploy.yml (#36)
Browse files Browse the repository at this point in the history
* Fixing docker-deploy.yml

Signed-off-by: danbugs <[email protected]>

* updating names and dockerfile

Signed-off-by: danbugs <[email protected]>

* update CI to only run if there were changes to Rust files

Signed-off-by: danbugs <[email protected]>

---------

Signed-off-by: danbugs <[email protected]>
  • Loading branch information
danbugs authored Dec 24, 2023
1 parent 634105e commit 931d364
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ on:
push:
branches:
- main
paths:
- '**.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
pull_request:
branches:
- main
paths:
- '**.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'

jobs:
lint-and-format:
Expand Down
23 changes: 12 additions & 11 deletions .github/workflows/docker-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@ on:
- main

jobs:
docker:
docker-deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Download artifact
uses: actions/download-artifact@v2
with:
name: my-binary-x86_64-unknown-linux-gnu
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: my-binary-x86_64-unknown-linux-gnu

- name: Build Docker image
run: |
docker build -t pidgtm-user-updater:latest -f Dockerfile-UserUpdater .
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
docker push pidgtm-user-updater:latest
- name: Build Docker image
run: |
docker build -t pidgtm-user-updater:latest -f Dockerfile-UserUpdater .
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
docker push pidgtm-user-updater:latest

0 comments on commit 931d364

Please sign in to comment.