22 lines
724 B
YAML
22 lines
724 B
YAML
on: [push]
|
|
|
|
name: Continuous Releases
|
|
|
|
env:
|
|
IMAGE_TAG: tea.werats.gay/laurayka/ci-rust-img:latest
|
|
UBUNTU_VERSION: latest
|
|
|
|
jobs:
|
|
publish_image:
|
|
name: build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- run: mkdir -p /etc/secrets || true
|
|
- run: printf '%s' "${{ secrets.CI_ACCESS }}" > /etc/secrets/docker.txt
|
|
- run: base64 < /etc/secrets/docker.txt
|
|
- run: docker login --username ${{ env.GITHUB_TRIGGERING_ACTOR }} --password-stdin tea.werats.gay < /etc/secrets/docker.txt
|
|
- run: docker build . -t ${{ env.IMAGE_TAG }} --build-arg UBUNTU_VERSION=${{ env.UBUNTU_VERSION }}
|
|
- run: docker push ${{ env.IMAGE_TAG }} |