diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bfab3a9..46fd7b8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,13 +24,13 @@ jobs: EARTHLY_CI: true steps: - name: Login to ghcr.io - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Earthly uses: earthly/actions-setup@v1 - name: +build ${{ matrix.target_os }}/${{ matrix.target_arch }} @@ -57,9 +57,9 @@ jobs: # username: ${{ github.repository_owner }} # password: ${{ secrets.GITHUB_TOKEN }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: setup-go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: '1.21' - name: golangci-lint diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 354be57..2d7b3fc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,13 +22,13 @@ jobs: EARTHLY_CI: true steps: - name: Login to ghcr.io - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Earthly uses: earthly/actions-setup@v1 - name: +build ${{ matrix.target_os }}/${{ matrix.target_arch }} @@ -46,24 +46,25 @@ jobs: packages: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: docker/login-action@v2 + - uses: actions/checkout@v4 + - uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - uses: docker/setup-buildx-action@v2 + - uses: docker/setup-buildx-action@v3 with: platforms: linux/amd64,linux/arm64 - - uses: docker/metadata-action@v4 + - uses: docker/metadata-action@v5 id: meta with: images: ghcr.io/${{ github.repository }} tags: | type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} type=raw,value=latest,enable={{is_default_branch}} - - uses: docker/build-push-action@v4 + - uses: docker/build-push-action@v5 with: context: . platforms: linux/amd64,linux/arm64