Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Bump tokio from 1.45.1 to 1.47.0 in the cargo-updates group #42

Bump tokio from 1.45.1 to 1.47.0 in the cargo-updates group

Bump tokio from 1.45.1 to 1.47.0 in the cargo-updates group #42

Workflow file for this run

name: Build Docker images
on:
workflow_dispatch:
inputs:
tag:
required: true
description: "Tag for the image"
push:
branches:
- main
env:
IMAGE_NAME: hello-http
IMAGE_TAG: "${{ github.sha }}"
jobs:
set-image-tag:
runs-on: ubuntu-latest
outputs:
IMAGE_TAG: ${{ steps.set_outputs.outputs.IMAGE_TAG }}
steps:
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Build latest tag
run: |
echo "IMAGE_TAG=latest" >> $GITHUB_ENV
- if: github.event_name == 'workflow_dispatch'
name: Set tag from input
run: |
echo "IMAGE_TAG=${{ inputs.tag }}" >> $GITHUB_ENV
- name: Forward IMAGE_TAG to later jobs
id: set_outputs
run: |
echo "IMAGE_TAG=${{ env.IMAGE_TAG }}" >> $GITHUB_OUTPUT
build:
runs-on: ${{ matrix.runs_on }}
needs:
- set-image-tag
strategy:
matrix:
include:
- arch: amd64
runs_on: ubuntu-latest
- arch: arm64
runs_on: buildjet-2vcpu-ubuntu-2204-arm
steps:
- run: |
echo "IMAGE=${{secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:${{ needs.set-image-tag.outputs.IMAGE_TAG }}" >> $GITHUB_ENV
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: |
docker build \
--platform linux/${{ matrix.arch }} \
-t $IMAGE-${{ matrix.arch }} \
.
- run: docker push $IMAGE-${{ matrix.arch }}
push-multiarch-manifest:
runs-on: ubuntu-latest
needs:
- set-image-tag
- build
steps:
- run: |
echo "IMAGE=${{secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:${{ needs.set-image-tag.outputs.IMAGE_TAG }}" >> $GITHUB_ENV
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: |
docker manifest create $IMAGE \
--amend $IMAGE-amd64 \
--amend $IMAGE-arm64
- run: docker manifest push --purge $IMAGE