This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
Corn-Utility/.gitea/workflows/build_container.yml
Renovate c134338b1e
All checks were successful
Build and push container image / build (push) Successful in 40s
Pin dependencies (#2)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://github.com/actions/checkout) | action | pinDigest |  -> `b4ffde6` |
| [docker/build-push-action](https://github.com/docker/build-push-action) | action | pinDigest |  -> `0565240` |
| [docker/login-action](https://github.com/docker/login-action) | action | pinDigest |  -> `343f7c4` |
| git.toast-server.net/toast/corn-utility |  | pinDigest |  -> `d966d1c` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xLjUiLCJ1cGRhdGVkSW5WZXIiOiIzNy4xLjUiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIifQ==-->

Reviewed-on: #2
Co-authored-by: Renovate <system@toast-server.net>
Co-committed-by: Renovate <system@toast-server.net>
2023-10-19 23:30:44 +00:00

38 lines
1.5 KiB
YAML

name: Build and push container image
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-22.04-node
steps:
- name: Setup Docker
run: |
apt-get update
apt-get -y install apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get -y install docker-ce docker-ce-cli containerd.io
- name: Checkout branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Login to Gitea
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
context: .
file: Dockerfile
platforms: linux/amd64
push: true
tags: ${{ secrets.DOCKER_REGISTRY }}/toast/corn-utility:main
cache-from: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/toast/corn-utility:main
cache-to: type=inline