diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 98a97435..d5a2c9f6 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index f4bae68d..f2127064 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -14,8 +14,8 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: 3.x - run: pip install --upgrade pip diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index ca5564df..e4bafe94 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -5,48 +5,56 @@ on: - master release: types: [published] + env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} + jobs: check-token: runs-on: ubuntu-latest outputs: - token: ${{ steps.token.outputs.defined }} + token_defined: ${{ steps.token_check.outputs.token_defined }} steps: - - id: token + - name: Check token + id: token_check env: - MY_TOKEN: ${{ secrets.MY_TOKEN }} + MY_TOKEN: ${{ secrets.MY_TOKEN }} if: "${{ env.MY_TOKEN != '' }}" - run: echo "::set-output name=defined::true" + run: echo "token_defined=true" >> "$GITHUB_OUTPUT" build: name: Release runs-on: ubuntu-latest needs: [check-token] - if: needs.check-token.outputs.token == 'true' + if: needs.check-token.outputs.token_defined == 'true' steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 + - name: Log in to the Container registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.MY_TOKEN }} + - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - name: Build and push Docker image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: . file: docker/Dockerfile diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27f883bb..acf16409 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Release