Skip to content

Commit

Permalink
Merge pull request #9 from AdautoDCJunior/lesson-04-ci-pipeline-docke…
Browse files Browse the repository at this point in the history
…r-git-actions

Aula 04 do curso "Integração Contínua: Pipeline Docker no Github Actions"
  • Loading branch information
AdautoDCJunior authored Jan 23, 2024
2 parents b27cbc0 + af31852 commit 5c5fa84
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ jobs:
- uses: actions/checkout@v3

- name: Set up docker
uses: docker/[email protected]
uses: docker/[email protected]

- name: Docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
7 changes: 4 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
test:
strategy:
matrix:
go_version: ['1.17', '1.18', '>=1.18']
os: ['ubuntu-latest', 'ubuntu-20.04']
go_version: ['>=1.18']
os: ['ubuntu-latest']

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -51,4 +51,5 @@ jobs:

docker:
needs: build
uses: ./.github/workflows/docker.yml
uses: ./.github/workflows/docker.yml
secrets: inherit

0 comments on commit 5c5fa84

Please sign in to comment.