From abee7715c1bca15d6c0a463ff174f3e16b9f19e9 Mon Sep 17 00:00:00 2001 From: Ana Date: Fri, 16 May 2025 16:24:21 -0300 Subject: [PATCH 1/8] Criando CI de build para o Super Marion. --- .github/workflows/supermario.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/supermario.yml diff --git a/.github/workflows/supermario.yml b/.github/workflows/supermario.yml new file mode 100644 index 0000000..7d06d68 --- /dev/null +++ b/.github/workflows/supermario.yml @@ -0,0 +1,24 @@ +name: Super Mario CI/CD + +on: + push: + branches: + - main + +jobs: + build_and_push: + runs-on: ubuntu-latest + + steps: + - name: Checkout do código + uses: actions/checkout@v3 + + - name: Login Docker Hub + run: | + echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login ${{ secrets.DOCKER_HUB_USER }} --password-stdin + + - name: Build da imagem + run: docker build -t anacarvalho3006/supermario:${{ github.run_id }} . + + - name: Push da imagem para o Docker Hub + run: docker push emerson4linux/supermario:${{ github.run_id }} From 048af636823bd807ca2e5a2784c0a8b44e22c957 Mon Sep 17 00:00:00 2001 From: Ana Date: Fri, 16 May 2025 16:33:53 -0300 Subject: [PATCH 2/8] Ajustado user Docker. --- .github/workflows/supermario.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/supermario.yml b/.github/workflows/supermario.yml index 7d06d68..6cac949 100644 --- a/.github/workflows/supermario.yml +++ b/.github/workflows/supermario.yml @@ -15,7 +15,7 @@ jobs: - name: Login Docker Hub run: | - echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login ${{ secrets.DOCKER_HUB_USER }} --password-stdin + echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_HUB_USER }} --password-stdin - name: Build da imagem run: docker build -t anacarvalho3006/supermario:${{ github.run_id }} . From 1f1a91e2075be40565af1aa35e65aafda0f833ab Mon Sep 17 00:00:00 2001 From: Ana Date: Fri, 16 May 2025 16:36:37 -0300 Subject: [PATCH 3/8] Corrigido o push. --- .github/workflows/supermario.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/supermario.yml b/.github/workflows/supermario.yml index 6cac949..59a084e 100644 --- a/.github/workflows/supermario.yml +++ b/.github/workflows/supermario.yml @@ -21,4 +21,4 @@ jobs: run: docker build -t anacarvalho3006/supermario:${{ github.run_id }} . - name: Push da imagem para o Docker Hub - run: docker push emerson4linux/supermario:${{ github.run_id }} + run: docker push anacarvalho3006/supermario:${{ github.run_id }} From 154fc2ba71bf8bedf3decc22eedcb1fe537c128f Mon Sep 17 00:00:00 2001 From: Ana Date: Fri, 16 May 2025 16:43:47 -0300 Subject: [PATCH 4/8] =?UTF-8?q?Criando=20vers=C3=A3o=20latest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/supermario.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/supermario.yml b/.github/workflows/supermario.yml index 59a084e..24547d3 100644 --- a/.github/workflows/supermario.yml +++ b/.github/workflows/supermario.yml @@ -21,4 +21,6 @@ jobs: run: docker build -t anacarvalho3006/supermario:${{ github.run_id }} . - name: Push da imagem para o Docker Hub - run: docker push anacarvalho3006/supermario:${{ github.run_id }} + run: | + docker push anacarvalho3006/supermario:${{ github.run_id }} + docker push anacarvalho3006/supermario:latest From b2015d86b31b9666477c7bfe92421ac7a88c55b8 Mon Sep 17 00:00:00 2001 From: Ana Date: Fri, 16 May 2025 16:47:51 -0300 Subject: [PATCH 5/8] Latest do Build da imagem --- .github/workflows/supermario.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/supermario.yml b/.github/workflows/supermario.yml index 24547d3..319b8c3 100644 --- a/.github/workflows/supermario.yml +++ b/.github/workflows/supermario.yml @@ -18,7 +18,9 @@ jobs: echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_HUB_USER }} --password-stdin - name: Build da imagem - run: docker build -t anacarvalho3006/supermario:${{ github.run_id }} . + run: | + docker build -t anacarvalho3006/supermario:${{ github.run_id }} + docker tag anacarvalho3006/supermario:latest:${{ github.run_id }} emerson4linux/supermario:latest - name: Push da imagem para o Docker Hub run: | From 5d1cc06f679a9b340a43f58757deac2d7981ca05 Mon Sep 17 00:00:00 2001 From: Ana Date: Fri, 16 May 2025 16:50:10 -0300 Subject: [PATCH 6/8] Agora vai --- .github/workflows/supermario.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/supermario.yml b/.github/workflows/supermario.yml index 319b8c3..a45c579 100644 --- a/.github/workflows/supermario.yml +++ b/.github/workflows/supermario.yml @@ -20,7 +20,7 @@ jobs: - name: Build da imagem run: | docker build -t anacarvalho3006/supermario:${{ github.run_id }} - docker tag anacarvalho3006/supermario:latest:${{ github.run_id }} emerson4linux/supermario:latest + docker tag anacarvalho3006/supermario:latest:${{ github.run_id }} anacarvalho3006/supermario:latest - name: Push da imagem para o Docker Hub run: | From ca5411673eeb484d0aca1ffc541e75b5e26aa732 Mon Sep 17 00:00:00 2001 From: Ana Date: Fri, 16 May 2025 16:54:08 -0300 Subject: [PATCH 7/8] Agora sim, vai --- .github/workflows/supermario.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/supermario.yml b/.github/workflows/supermario.yml index a45c579..8f438bf 100644 --- a/.github/workflows/supermario.yml +++ b/.github/workflows/supermario.yml @@ -19,7 +19,7 @@ jobs: - name: Build da imagem run: | - docker build -t anacarvalho3006/supermario:${{ github.run_id }} + docker build -t anacarvalho3006/supermario:${{ github.run_id }} . docker tag anacarvalho3006/supermario:latest:${{ github.run_id }} anacarvalho3006/supermario:latest - name: Push da imagem para o Docker Hub From ab41ccdc37adef8083fd4adf2f2ee01b2c2343e9 Mon Sep 17 00:00:00 2001 From: Ana Date: Fri, 16 May 2025 16:58:22 -0300 Subject: [PATCH 8/8] =?UTF-8?q?Entre=20raz=C3=B5es=20e=20emo=C3=A7=C3=B5es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/supermario.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/supermario.yml b/.github/workflows/supermario.yml index 8f438bf..69ebe69 100644 --- a/.github/workflows/supermario.yml +++ b/.github/workflows/supermario.yml @@ -20,7 +20,8 @@ jobs: - name: Build da imagem run: | docker build -t anacarvalho3006/supermario:${{ github.run_id }} . - docker tag anacarvalho3006/supermario:latest:${{ github.run_id }} anacarvalho3006/supermario:latest + docker tag anacarvalho3006/supermario:${{ github.run_id }} anacarvalho3006/supermario:latest + - name: Push da imagem para o Docker Hub run: |