-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from jjuarez/feature/docker-build-by-target
Feature/docker build by target
- Loading branch information
Showing
4 changed files
with
61 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: dagger/ci/golang | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
ci-golang: | ||
runs-on: ubuntu-latest | ||
env: | ||
DAGGER_LOGLEVEL: "info" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dagger | ||
uses: dagger/dagger-for-github@v3 | ||
with: | ||
install-only: true | ||
|
||
- name: Dagger project update | ||
run: dagger project update | ||
|
||
- name: Dagger do test | ||
run: dagger do test --log-format plain --log-level ${DAGGER_LOGLEVEL} | ||
|
||
- name: Dagger do build | ||
run: dagger do build --log-format plain --log-level ${DAGGER_LOGLEVEL} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,29 @@ | ||
name: docker | ||
name: dagger/docker | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
DAGGER_LOGLEVEL: "debug" | ||
steps: | ||
- name: Clone repository | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Docker build | ||
- name: Install dagger | ||
uses: dagger/dagger-for-github@v3 | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
with: | ||
version: 0.2 | ||
cmds: | | ||
project update | ||
do docker_build | ||
install-only: true | ||
|
||
- name: Docker push | ||
uses: dagger/dagger-for-github@v3 | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
with: | ||
version: 0.2 | ||
cmds: | | ||
project update | ||
do docker_push --log-level=debug | ||
- name: Dagger project update | ||
run: dagger project update | ||
|
||
- name: Docker build | ||
run: dagger do docker_build --log-format plain --log-level ${DAGGER_LOGLEVEL} | ||
|
||
- name: Docker release | ||
run: dagger do release --log-format plain --log-level ${DAGGER_LOGLEVEL} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters