This repository was archived by the owner on Oct 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Container Image CI
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+ release :
9+ types : [published]
10+
11+ env :
12+ REGISTRY : ghcr.io
13+ IMAGE_NAME : ${{ github.repository }}
14+
15+ jobs :
16+ build-and-push-image :
17+ runs-on : ubuntu-latest
18+ permissions :
19+ contents : read
20+ packages : write
21+
22+ steps :
23+ - name : Checkout repository
24+ uses : actions/checkout@v3
25+ with :
26+ ref : 0061fe45bceb71bde353fb8c5c1cb9ae108ddef3
27+
28+ - name : Login to Github Container Registory
29+ uses : docker/login-action@v2
30+ with :
31+ registry : ${{ env.REGISTRY }}
32+ username : ${{ github.actor }}
33+ password : ${{ secrets.GITHUB_TOKEN }}
34+
35+ - name : Extract metadata (tags, labels) for Container
36+ id : meta
37+ uses : docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
38+ with :
39+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
40+
41+ - name : Build and Push Container Images
42+ uses : docker/build-push-action@v4
43+ with :
44+ context : .
45+ file : ./Dockerfile
46+ push : true
47+ tags : ghcr.io/docheio/container-api:1.0.3
48+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ RUN pacman -S --noconfirm curl
1717RUN pacman -S --noconfirm tar
1818
1919WORKDIR /root
20- RUN curl -sLO https://github.com/docheio/container-api/archive/refs/tags/v1.0.2 .tar.gz
21- RUN tar zxfp ./v1.0.2 .tar.gz
20+ RUN curl -sLO https://github.com/docheio/container-api/archive/refs/tags/v1.0.3 .tar.gz
21+ RUN tar zxfp ./v1.0.3 .tar.gz
2222
2323RUN mv /root/container-api* /root/container-api
2424WORKDIR /root/container-api
You can’t perform that action at this time.
0 commit comments