Skip to content

Commit 13678e2

Browse files
authored
Feat/rust stable 1.53.0 (#1)
* feat(rust-stable): rustc 1.53.0 * chore(rust-stable): add on-pr gh action
1 parent 327503d commit 13678e2

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
lines changed

.github/workflows/on-pr.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: On Pull Request
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
env:
8+
IMAGE_NAME: fedora-rust-builder
9+
10+
jobs:
11+
docker-build-test:
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Try Build
16+
run: |
17+
# Build Image
18+
docker build -f Dockerfile -t $IMAGE_NAME .

.github/workflows/docker-image.yml renamed to .github/workflows/on-release.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ on:
55
types: [published]
66

77
env:
8-
IMAGE_NAME: linux-stable
9-
DOCKER_IMAGE_NAME: kresna360/fedora34-rust-base
8+
IMAGE_NAME: fedora-rust-builder
109

1110
jobs:
1211
docker-publish-stable:
@@ -21,9 +20,6 @@ jobs:
2120
# Login Github Docker Registry
2221
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
2322
24-
# Login Docker Hub
25-
echo "${{ secrets.DOCKER_KEY }}" | docker login -u kresna360 --password-stdin
26-
2723
# Github Package Registry Tag & Push
2824
IMAGE_ID=ghcr.io/${{ github.repository }}/$IMAGE_NAME
2925
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
@@ -36,15 +32,3 @@ jobs:
3632
VERSION=latest
3733
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
3834
docker push $IMAGE_ID:$VERSION
39-
40-
# Docker Hub Tag & Push
41-
IMAGE_ID=$DOCKER_IMAGE_NAME
42-
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
43-
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$IMAGE_NAME-$(echo $VERSION | sed -e 's/^v//')
44-
echo IMAGE_ID=$IMAGE_ID
45-
echo VERSION=$VERSION
46-
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
47-
docker push $IMAGE_ID:$VERSION
48-
VERSION=$IMAGE_NAME-latest
49-
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
50-
docker push $IMAGE_ID:$VERSION

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ This is a docker base image for multistage native binary build.
66

77
- Python 3.9 Development Packages
88
- GCC 11.1.1
9-
- Clang/LLVM 12.0.0
10-
- Rust 1.52.1 (Stable)
9+
- Clang/LLVM 12.0.1
10+
- Rust 1.53.0 (Stable)
1111
- musl libc

0 commit comments

Comments
 (0)