Skip to content

Commit

Permalink
Merge pull request #3 from tofran/update-ci-cd
Browse files Browse the repository at this point in the history
Update CI/CD dependencies and README
  • Loading branch information
tofran authored Mar 24, 2024
2 parents 654a565 + 4c83579 commit c6baf22
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,23 @@ jobs:

- name: Docker metadata
id: docker_metadata
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
tofran/restic-rclone
ghcr.io/tofran/restic-rclone
tags: |
type=raw,value=${{ matrix.restic_version }}_${{ matrix.rclone_version }}
flavor: |
latest=false
latest=${{ matrix.restic_version == 'latest' && matrix.rclone_version == 'latest'}}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
platforms: ${{ env.TARGET_PLATFORMS }}
tags: ${{ steps.docker_metadata.outputs.tags }}
labels: ${{ steps.docker_metadata.outputs.labels }}
push: true
push: ${{ github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule')}}
4 changes: 4 additions & 0 deletions .github/workflows/trigger-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
# Every monday at 10:00 UTC
- cron: "0 10 * * 1"
workflow_dispatch:
push:
branches:
- main
pull_request:

jobs:
get_versions:
Expand Down
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
[![Docker image size](https://img.shields.io/docker/image-size/tofran/restic-rclone?sort=date)][DockerHub]
[![Docker pulls](https://img.shields.io/docker/pulls/tofran/restic-rclone)][DockerHub]

Always up-to-date minimal Alpine multi-arch images, with **Restic** and **Rclone** tagged for each version combination.
Always up-to-date minimal Alpine multi-arch images, with **Restic** and **Rclone** tagged for each
version combination.

[tofran/restic-rclone @ Docker Hub][DockerHub]

Expand All @@ -13,12 +14,18 @@ Always up-to-date minimal Alpine multi-arch images, with **Restic** and **Rclone

## Tags

Images are tagged with a combination of Restic and Rclone tags, in the format: `{RESTIC_TAG}_{RCLONE_TAG}`.
Images are tagged with a combination of Restic and Rclone tags, in the format:
`{RESTIC_TAG}_{RCLONE_TAG}`.

Example tags: `latest_latest`, `0.15.1_1.54.1`, `latest_1.54`.
Example tags: `latest_latest`, `0.16.0_1.64.0`, `latest_1.64.0`, `0.16.0_latest`.

The latest 4 images from both upstreams are maintained. Image building is automatic, via [GitHub actions](https://github.com/tofran/restic-rclone-docker/actions).

## Architecture support

Images are built for the following architectures:
`linux/386`, `linux/amd64`, `linux/arm`, `linux/arm64`

## Usage

```sh
Expand All @@ -31,7 +38,7 @@ $ docker pull ghcr.io/tofran/restic-rclone:0.15.1_1.61.1
$ docker run tofran/restic-rclone:0.15.1_1.61.1 -v
# or
$ docker run ghcr.io/tofran/restic-rclone:0.15.1_1.61.1 -v
restic 0.15.1 compiled with go1.19.5 on linux/amd64
# > restic 0.15.1 compiled with go1.19.5 on linux/amd64
```

`restic` is the default entrypoint.
Expand Down

0 comments on commit c6baf22

Please sign in to comment.