Update Element to 1.11.88 and run cargo update #702
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: | |
push: | |
branches: [main] | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build and Push Docker Image | |
run: | | |
image="ghcr.io/msrd0/element" | |
docker pull "$image:cache" || true | |
docker build . \ | |
--pull \ | |
--target builder \ | |
--cache-from "$image:cache" \ | |
--tag "$image:cache" | |
docker build . \ | |
--pull \ | |
--cache-from "$image:cache" \ | |
--tag "$image" | |
version="$(docker run --rm "$image" /bin/element version)" | |
docker tag "$image" "$image:$version" | |
docker login -u msrd0 -p "${{secrets.GITHUB_TOKEN}}" ghcr.io | |
docker push "$image:cache" | |
docker push "$image:$version" | |
docker push "$image" |