From 09556385ff5398bebddfa0489d5bd734d0d7c50c Mon Sep 17 00:00:00 2001 From: Goulven Bourveau Date: Sat, 12 Apr 2025 01:37:16 +0200 Subject: [PATCH] Changing source of tutorial to https://github.com/docker/metadata-action --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++ .github/workflows/release-please.yml | 22 --------------- 2 files changed, 41 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..125c867 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: ci + +on: + workflow_dispatch: + push: + branches: + - 'master' + tags: + - '*' + pull_request: + branches: + - 'master' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + images: name/app + - + name: Login to DockerHub + if: github.event_name != 'pull_request' + uses: docker/login-action@v3 + with: + username: ${{ github.actor }} + password: ${{ secrets.PAT }} + - + name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml deleted file mode 100644 index 0acb3ef..0000000 --- a/.github/workflows/release-please.yml +++ /dev/null @@ -1,22 +0,0 @@ -on: - push: - -permissions: - contents: write - pull-requests: write - -name: release-please - -jobs: - release-please: - runs-on: ubuntu-latest - steps: - - uses: googleapis/release-please-action@v4 - with: - # this assumes that you have created a personal access token - # (PAT) and configured it as a GitHub action secret named - # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). - token: ${{ secrets.PAT }} - # this is a built-in strategy in release-please, see "Action Inputs" - # for more options - release-type: simple